Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Default *gorm.DB
)
Functions ¶
func Init ¶
func Init() (err error)
Init initializes the default SQLite connection. It checks if SQLite is enabled and selected as the default database. If the connection is successful, it initializes the database and returns nil.
func New ¶
New creates and returns a new SQLite database connection with the given configuration. The returned handle already carries the GORM OpenTelemetry tracing plugin, so application-held instances passed to DatabaseOn, AggregateOn, and TransactionOn are traced like the default database. Connections open through this package's own driver, which carries the framework's REGEXP implementation; see registerRegexpFunc.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.