Documentation ¶
Index ¶
- Constants
- func ChangeEncryptionKey(path string, key string, kdfIterationsNumber int, newKey string) error
- func DecryptDB(oldPath string, newPath string, key string, kdfIterationsNumber int) error
- func EncryptDB(unencryptedPath string, encryptedPath string, key string, ...) error
- func Migrate(db *sql.DB, resources *bindata.AssetSource) error
- func OpenDB(path string, key string, kdfIterationsNumber int) (*sql.DB, error)
- func OpenUnecryptedDB(path string) (*sql.DB, error)
- type JSONBlob
Constants ¶
View Source
const ( // The reduced number of kdf iterations (for performance reasons) which is // used as the default value // https://github.com/status-im/status-go/pull/1343 // https://notes.status.im/i8Y_l7ccTiOYq09HVgoFwA ReducedKDFIterationsNumber = 3200 // WALMode for sqlite. WALMode = "wal" InMemoryPath = ":memory:" )
Variables ¶
This section is empty.
Functions ¶
func ChangeEncryptionKey ¶ added in v0.80.2
func EncryptDB ¶ added in v0.69.0
func EncryptDB(unencryptedPath string, encryptedPath string, key string, kdfIterationsNumber int) error
EncryptDB takes a plaintext database and adds encryption
func Migrate ¶
func Migrate(db *sql.DB, resources *bindata.AssetSource) error
Migrate database using provided resources.
Types ¶
Click to show internal directories.
Click to hide internal directories.