sqlite

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2023 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSQLiteDB

func NewSQLiteDB(path string) (*sql.DB, error)

func RunMigrations

func RunMigrations(ctx context.Context, db *sql.DB) error

Types

type SQLiteSessionStore

type SQLiteSessionStore struct {
	// contains filtered or unexported fields
}

func NewSQLiteSessionStore

func NewSQLiteSessionStore(db bob.Executor) *SQLiteSessionStore

func (*SQLiteSessionStore) Commit

func (s *SQLiteSessionStore) Commit(token string, b []byte, expiry time.Time) error

func (*SQLiteSessionStore) Delete

func (s *SQLiteSessionStore) Delete(token string) error

func (*SQLiteSessionStore) Find

func (s *SQLiteSessionStore) Find(token string) ([]byte, bool, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL