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.
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.
Click to show internal directories.
Click to hide internal directories.