Versions in this module Expand all Collapse all v1 v1.2.0 Mar 20, 2025 Changes in this version + var ErrInvalidInterval = errors.New("invalid cleanup interval") + var ErrInvalidTable = errors.New("invalid table name") + type SQLiteStore struct + func New(db *sql.DB, table string) (*SQLiteStore, error) + func NewWithCleanup(db *sql.DB, table string, dur time.Duration) (*SQLiteStore, <-chan error, func(), error) + func (st *SQLiteStore) Cleanup(ctx context.Context, dur time.Duration) error + func (st *SQLiteStore) Create(ctx context.Context, session sessionup.Session) error + func (st *SQLiteStore) DeleteByID(ctx context.Context, id string) error + func (st *SQLiteStore) DeleteByUserKey(ctx context.Context, key string, expIDs ...string) error + func (st *SQLiteStore) FetchByID(ctx context.Context, id string) (sessionup.Session, bool, error) + func (st *SQLiteStore) FetchByUserKey(ctx context.Context, key string) ([]sessionup.Session, error) + func (st *SQLiteStore) OnDeletion(fn func(context.Context, sessionup.Session)) func(bool)