Documentation
¶
Overview ¶
Package database provides a thread-safe connection pool manager for Turso LibSQL.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Close ¶
func Close() error
Close closes the database connection pool. Should only be called during graceful shutdown.
func GetDB ¶
GetDB returns a singleton database connection pool. Connection is lazily initialized on first call with robust pool configuration.
func InitIndexes ¶
InitIndexes ensures critical performance indexes exist on tables.
func ResetDBInstance ¶
func ResetDBInstance()
ResetDBInstance resets the singleton state so GetDB can be initialized again.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.