Help us shape the future of Go! Take the 2026 Go Developer Survey

sqlite

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package sqlite runs the account commands and command records of gonsole/auth on a program's one SQLite handle.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migration

func Migration(opts MigrateOptions) gonsole.Step

Migration returns the step that applies gouncer's account tables on the run's one handle.

func NewRecordStore

func NewRecordStore(db *sql.DB) auth.RecordStore

NewRecordStore returns the record store of the SQLite file behind db.

func RecordMigration

func RecordMigration(opts MigrateOptions) gonsole.Step

RecordMigration returns the step that applies the table keeping the command records on the run's one handle.

func Stores

func Stores(ctx context.Context, call gonsole.Call) (auth.Stores, func(context.Context) error, error)

Stores returns the account and record stores of call on the run's one handle, which the run owns and closes.

Types

type MigrateOptions

type MigrateOptions struct {
	// LockWait is how long a run waits for the migration lock, above zero.
	LockWait time.Duration
	// LockPoll is how often a waiting run tries the migration lock, above zero.
	LockPoll time.Duration
}

MigrateOptions sets how a run of a schema step waits for the migration lock of the database file.

Jump to

Keyboard shortcuts

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