Documentation
¶
Overview ¶
Package db provides GORM database connection management for serverless and HTTP services.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConnection ¶
func NewConnection(cfg config.DatabaseConfig) (*gorm.DB, error)
NewConnection creates a new GORM database connection based on the configuration. It supports "sqlite" and "postgres" drivers. Accepts any type that implements the DatabaseConfig interface.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.