Versions in this module Expand all Collapse all v0 v0.1.0 Nov 1, 2026 Changes in this version + var ErrInvalidConfig = errors.New("invalid SQLite configuration") + type Builder struct + func (connection *Builder) ConnMaxIdleTime(value time.Duration) *Builder + func (connection *Builder) ConnMaxLifetime(value time.Duration) *Builder + func (connection *Builder) MaxIdleConns(value int) *Builder + func (connection *Builder) MaxOpenConns(value int) *Builder + type BuilderFunc = func(*Builder) + type Driver struct + func New(dsn string, configure ...BuilderFunc) (*Driver, error) + func NewFrom(pool *sql.DB, configure ...BuilderFunc) *Driver + func (driver *Driver) Dialect() query.Dialect + func (driver *Driver) Exec(ctx context.Context, statement string, args ...any) (int64, error) + func (driver *Driver) Find(ctx context.Context, statement string, dest any, args ...any) (err error) + func (driver *Driver) Lock(ctx context.Context, name string) (func(context.Context) error, error) + func (driver *Driver) Ping(ctx context.Context) error + func (driver *Driver) Query(ctx context.Context, statement string, args ...any) (database.Rows, error) + func (driver *Driver) SQL() *sql.DB + func (driver *Driver) Select(ctx context.Context, statement string, dest any, args ...any) (err error) + func (driver *Driver) Start(ctx context.Context) error + func (driver *Driver) Stop(context.Context) error + func (driver *Driver) TryLock(ctx context.Context, name string) (func(context.Context) error, bool, error) + func (driver *Driver) WithSession(ctx context.Context, fn func(session database.Driver) error) (retErr error) + func (driver *Driver) WithTransaction(ctx context.Context, fn func(tx database.Driver) error) error