Documentation ¶
Index ¶
- func ChangeDatabasePassword(path string, password string, kdfIterationsNumber int, newPassword string, ...) error
- func ColumnExists(db *sql.DB, tableName string, columnName string) (bool, error)
- func DecryptDatabase(oldPath, newPath, password string, kdfIterationsNumber int) error
- func EncryptDatabase(oldPath, newPath, password string, kdfIterationsNumber int, onStart func(), ...) error
- func ExportDB(path string, password string, kdfIterationsNumber int, newDbPAth string, ...) error
- func GetDBFilename(db *sql.DB) (string, error)
- func InitializeDB(path, password string, kdfIterationsNumber int) (*sql.DB, error)
- func MigrateV3ToV4(v3Path string, v4Path string, password string, kdfIterationsNumber int, ...) error
- func SetupTestMemorySQLDB(prefix string) (*sql.DB, error)
- func SetupTestSQLDB(prefix string) (*sql.DB, func() error, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeDatabasePassword ¶ added in v0.80.2
func ColumnExists ¶ added in v0.157.2
func DecryptDatabase ¶ added in v0.69.0
DecryptDatabase creates an unencrypted copy of the database and copies it over to the given directory
func EncryptDatabase ¶ added in v0.69.0
func EncryptDatabase(oldPath, newPath, password string, kdfIterationsNumber int, onStart func(), onEnd func()) error
EncryptDatabase creates an encrypted copy of the database and copies it to the user path
func GetDBFilename ¶ added in v0.97.0
GetDBFilename takes an instance of sql.DB and returns the filename of the "main" database
func InitializeDB ¶
InitializeDB creates db file at a given path and applies migrations.
func MigrateV3ToV4 ¶ added in v0.158.0
func SetupTestMemorySQLDB ¶ added in v0.97.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.