dbsetup

package
v0.179.18 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const InMemoryPath = ":memory:"
View Source
const ReducedKDFIterationsNumber = 3200

The reduced number of kdf iterations (for performance reasons) which is currently used for derivation of the database key https://github.com/status-im/status-go/pull/1343 https://notes.status.im/i8Y_l7ccTiOYq09HVgoFwA

Variables

This section is empty.

Functions

func GetDBFilename

func GetDBFilename(db *sql.DB) (string, error)

GetDBFilename takes an instance of sql.DB and returns the filename of the "main" database

Types

type DatabaseInitializer

type DatabaseInitializer interface {
	Initialize(path, password string, kdfIterationsNumber int) (*sql.DB, error)
}

Jump to

Keyboard shortcuts

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