Versions in this module Expand all Collapse all v0 v0.9.0 Mar 19, 2026 Changes in this version + func HandleError(err error) error + type Client interface + Begin func(ctx context.Context) (Tx, error) + GetExecutor func(ctx context.Context) Executor + HandleError func(err error) error + Ping func(ctx context.Context) error + type Component interface + func New(logger logz.Logger, cfg Config) Component + type Config struct + MaxIdleConns int + MaxOpenConns int + Path string + Pragmas string + type Executor interface + ExecContext func(ctx context.Context, query string, args ...any) (sql.Result, error) + QueryContext func(ctx context.Context, query string, args ...any) (*sql.Rows, error) + QueryRowContext func(ctx context.Context, query string, args ...any) *sql.Row + type Tx interface + Commit func() error + Rollback func() error + type UnitOfWork interface + Do func(ctx context.Context, fn func(ctx context.Context) error) error + func NewUnitOfWork(logger logz.Logger, client Client) UnitOfWork