database

package
v0.0.0-...-ec4cb9b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConnection

func GetConnection(dbCfg config.Database) (*sql.DB, error)

GetConnection establishes a connection to the Turso database and returns a database handle with proper connection pool settings

func GetDatabase

func GetDatabase(dbCfg config.Database) (*repo.Queries, error)

GetDatabase initializes a database connection and returns a Queries object that provides type-safe access to all database operations

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL