# Packages
No description provided by the author
# Functions
Backup returns the underlying sqlite3 backup manager.
BeginTx creates a transaction with the connected database but returns an error if the database is not connected.
Close the database safely and allow for reconnect after close by resetting the package variables.
Connect to the sqlite3 database specified by the DSN.
Initialize schema applies any unapplied migrations to the database and should be run when the database is first connected to.
Migrations returns the migration files from the embedded file system.
NewResetToken creates a token struct from a user ID that expires in 15 minutes.
Create new signing info with a time expiration.
NewVerificationToken creates a token struct from an email address that expires in 7 days.
DSN parsing and handling.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
DSN represents the parsed components of an embedded database service.
Migration is used to represent both a SQL migration from the embedded file system and a migration record in the database.
ResetToken packages a user ID with random data and an expiration time so that it can be serialized and hashed into a token which can be sent to users.
SigningInfo contains an expiration time and a nonce that is used to sign the token.
VerificationToken packages an email address with random data and an expiration time so that it can be serialized and hashed into a token which can be sent to users.