mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
As we've now switched over to using sqldb v2 for most of the db objects, we can remove a lot of deprecated code that's no longer used in the litd project. This commit removes that code.
23 lines
847 B
Go
23 lines
847 B
Go
package db
|
|
|
|
import (
|
|
_ "modernc.org/sqlite" // Register relevant drivers.
|
|
)
|
|
|
|
// SqliteConfig holds all the config arguments needed to interact with our
|
|
// sqlite DB.
|
|
//
|
|
// nolint:ll
|
|
type SqliteConfig struct {
|
|
// SkipMigrations if true, then all the tables will be created on start
|
|
// up if they don't already exist.
|
|
SkipMigrations bool `long:"skipmigrations" description:"Skip applying migrations on startup."`
|
|
|
|
// SkipMigrationDbBackup if true, then a backup of the database will not
|
|
// be created before applying migrations.
|
|
SkipMigrationDbBackup bool `long:"skipmigrationdbbackup" description:"Skip creating a backup of the database before applying migrations."`
|
|
|
|
// DatabaseFileName is the full file path where the database file can be
|
|
// found.
|
|
DatabaseFileName string `long:"dbfile" description:"The full path to the database."`
|
|
}
|