Versions in this module Expand all Collapse all v0 v0.2.0 Nov 25, 2026 Changes in this version type Store + func (s *Store) Purge(ctx context.Context, now time.Time) (store.PurgeStats, error) v0.1.0 Nov 24, 2026 Changes in this version + type Conn 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 Migration struct + Name string + SQL string + Version int + type Options struct + BusyTimeout time.Duration + Cascades []store.Cascade + Clock core.Clock + Logger *slog.Logger + MaxConns int + Migrations []Migration + Path string + type Store struct + func Open(ctx context.Context, o Options) (*Store, error) + func (s *Store) Accounts() store.AccountStore + func (s *Store) Audit() store.AuditStore + func (s *Store) Close() error + func (s *Store) Conn(ctx context.Context) Conn + func (s *Store) Invites() store.InviteStore + func (s *Store) OAuth() store.OAuthStore + func (s *Store) Passkeys() store.PasskeyStore + func (s *Store) People() store.PersonStore + func (s *Store) Sessions() store.SessionStore + func (s *Store) Tx(ctx context.Context, fn func(ctx context.Context) error) (err error)