Versions in this module Expand all Collapse all v0 v0.3.0 Jan 21, 2026 v0.2.0 Jan 21, 2026 Changes in this version + var ErrApplySchema = errors.New("failed to apply schema") + var ErrBuildConnectionURL = errors.New("failed to build SQLite connection URL") + var ErrOpenDatabase = errors.New("failed to open database") + var ErrPingDatabase = errors.New("failed to ping database") + var ErrSchemaValidation = errors.New("schema validation failed") + func BaseSchema() string + func Migrate(db *Database, migrations embed.FS, dir string) error + func MigrateWithSquibble(db *Database, schema *squibble.Schema) error + type Config struct + Path string + Schema string + type Database struct + func New(path string, schema string) (*Database, error) + func NewWithConfig(cfg *sqliteconfig.Config, schema string) (*Database, error) + func (d *Database) Close() error + func (d *Database) DB() *sqlx.DB + func (d *Database) WithTx(ctx context.Context, fn func(*sqlx.Tx) error) error