Versions in this module Expand all Collapse all v0 v0.1.1 Sep 29, 2026 v0.1.0 Sep 27, 2026 Changes in this version + const DialectPostgres + const DialectSQLite + type Adapter interface + Open func(context.Context, Config) (*sql.DB, error) + Ping func(context.Context, *sql.DB) error + func Postgres() Adapter + func SQLite() Adapter + type Config struct + ConnMaxIdleTime time.Duration + ConnMaxLifetime time.Duration + DSN string + MaxIdleConns int + MaxOpenConns int + type DB struct + func Open(ctx context.Context, cfg Config, adapter Adapter) (*DB, error) + func (db *DB) Close() error + func (db *DB) Migrate(ctx context.Context, migrations fs.FS) error + func (db *DB) Ping(ctx context.Context) error + func (db *DB) SQL() *sql.DB + func (db *DB) Tx(ctx context.Context, fn func(*sql.Tx) error) error