Versions in this module Expand all Collapse all v2 v2.0.3 Jun 19, 2026 Changes in this version + type Dialect int + const DialectPostgres + const DialectSQLite + type Store interface + Close func() error + DB func() *sql.DB + Del func(ctx context.Context, key string) error + Exec func(ctx context.Context, query string, args ...any) (sql.Result, error) + Get func(ctx context.Context, key string) (value []byte, ok bool, err error) + IsDup func(err error) bool + NextSeq func(ctx context.Context, name string) (int64, error) + Query func(ctx context.Context, query string, args ...any) (*sql.Rows, error) + QueryRow func(ctx context.Context, query string, args ...any) *sql.Row + Set func(ctx context.Context, key string, value []byte) error + func OpenSQL(ctx context.Context, sqlDB *sql.DB, dialect Dialect, isDup func(error) bool) (Store, error)