Versions in this module Expand all Collapse all v1 v1.0.0 Aug 25, 2025 Changes in this version + type DBTX interface + ExecContext func(context.Context, string, ...interface{}) (sql.Result, error) + PrepareContext func(context.Context, string) (*sql.Stmt, error) + QueryContext func(context.Context, string, ...interface{}) (*sql.Rows, error) + QueryRowContext func(context.Context, string, ...interface{}) *sql.Row + type Family struct + Family string + Subject string + Valid bool + type InsertFamilyParams struct + Family string + Subject string + Valid bool + type InsertSecretParams struct + Secret string + Subject string + type InsertSubjectParams struct + Subject string + Username string + type InsertUserParams struct + Password string + Username string + type Querier interface + InsertFamily func(ctx context.Context, arg InsertFamilyParams) error + InsertSecret func(ctx context.Context, arg InsertSecretParams) error + InsertSubject func(ctx context.Context, arg InsertSubjectParams) error + InsertUser func(ctx context.Context, arg InsertUserParams) error + InvalidateUser func(ctx context.Context, subject string) error + SelectFamily func(ctx context.Context, arg SelectFamilyParams) (bool, error) + SelectPasswordByUsername func(ctx context.Context, username string) (string, error) + SelectSecret func(ctx context.Context, subject string) (string, error) + SelectSubjectByUsername func(ctx context.Context, username string) (string, error) + type Queries struct + func New(db DBTX) *Queries + func (q *Queries) InsertFamily(ctx context.Context, arg InsertFamilyParams) error + func (q *Queries) InsertSecret(ctx context.Context, arg InsertSecretParams) error + func (q *Queries) InsertSubject(ctx context.Context, arg InsertSubjectParams) error + func (q *Queries) InsertUser(ctx context.Context, arg InsertUserParams) error + func (q *Queries) InvalidateUser(ctx context.Context, subject string) error + func (q *Queries) SelectFamily(ctx context.Context, arg SelectFamilyParams) (bool, error) + func (q *Queries) SelectPasswordByUsername(ctx context.Context, username string) (string, error) + func (q *Queries) SelectSecret(ctx context.Context, subject string) (string, error) + func (q *Queries) SelectSubjectByUsername(ctx context.Context, username string) (string, error) + func (q *Queries) WithTx(tx *sql.Tx) *Queries + type SQLiteDB struct + func NewSQLiteDB(dbPath string) (*SQLiteDB, error) + func (s *SQLiteDB) Close() error + func (s *SQLiteDB) InsertFamily(userId, family string, value bool) error + func (s *SQLiteDB) InsertSecret(userId, secret string) error + func (s *SQLiteDB) InsertSubject(username string, subject string) error + func (s *SQLiteDB) InsertUser(username string, password string) error + func (s *SQLiteDB) InvalidateUser(userId string) error + func (s *SQLiteDB) NewUserId() (string, error) + func (s *SQLiteDB) SelectFamily(userId, family string) bool + func (s *SQLiteDB) SelectPasswordByUsername(username string) (string, error) + func (s *SQLiteDB) SelectSecret(userId string) (string, error) + func (s *SQLiteDB) SelectSubjectByUsername(username string) (string, error) + type Secret struct + Secret string + Subject string + type SelectFamilyParams struct + Family string + Subject string + type Subject struct + Subject string + Username string + type User struct + Password string + Username string