package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: May 13, 2026
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package database provides common interfaces for containerized databases.
type DB struct {
Pool *sql.DB
Close func()
}
DB wraps a SQL database connection pool with its cleanup function.
Ping checks if the database is reachable.
Start starts the database and returns a cleanup function.
StartFunc is a function that starts a database container.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.