Documentation
¶
Overview ¶
Package database implements the functions, types, and interfaces for the module.
Index ¶
Constants ¶
View Source
const ( Module = "storage.database" ErrDatabaseConfigNil = errors.String("database: config is nil") )
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(cfg *databasev1.DatabaseConfig) (storageiface.Database, error)
New creates a new database instance based on the provided configuration. It uses Go's native database/sql package to open a connection.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.