Versions in this module Expand all Collapse all v1 v1.0.0 Aug 5, 2026 Changes in this version + const DefaultTablePrefix + const SessionsTable + func FromMicros(us int64) time.Time + func Micros(t time.Time) int64 + func ValidTablePrefix(prefix string) (string, error) + type Config struct + Database string + Engine string + FilePath string + Host string + Params map[string]string + Password string + Port int + SSLMode string + Socket string + TablePrefix string + User string + func (c Config) Enabled() bool + type SessionStore struct + func NewSessionStore(st *Store, cfg SessionStoreConfig) *SessionStore + func (s *SessionStore) Degradations() int64 + func (s *SessionStore) Delete(id string) + func (s *SessionStore) Detach() []*session.Session + func (s *SessionStore) Get(id string) (*session.Session, bool) + func (s *SessionStore) Len() int + func (s *SessionStore) Reap(expired func(*session.Session) bool) []*session.Session + func (s *SessionStore) Replace(old, new *session.Session) bool + func (s *SessionStore) Save(sess *session.Session) + type SessionStoreConfig struct + IdleTimeout time.Duration + Log *slog.Logger + Now func() time.Time + type Store struct + func Open(ctx context.Context, cfg Config) (*Store, error) + func (s *Store) Close() error + func (s *Store) Col(name string) string + func (s *Store) DB() *sql.DB + func (s *Store) Describe() string + func (s *Store) Engine() string + func (s *Store) Ping(ctx context.Context) error + func (s *Store) Placeholder(n int) string + func (s *Store) SchemaVersion() int + func (s *Store) Table(name string) string v1.0.0-rc.2 Aug 5, 2026 v1.0.0-rc.1 Aug 5, 2026