Module db

Source

Structs§

Connection
Database connection
DatabaseId
Database ID is a locally public random byte array that can be used by the apps using this library to identify the database file. For example, if the app stores passwords externally (e.g. fingerprint biometric) it can do so under the DATABASE_ID as key. Note that the RepositoryId could - in theory - also be used for this purpose, but in case the database IDs are leaked to an adversary without the actual database files, the adversary will not be able to link the DATABASE_ID to a corresponding repository. For that reason database IDs may be preferable.
Pool
Database connection pool.
PoolConnection
Database connection from pool
ReadTransaction
Transaction that allows only reading.
WriteTransaction
Transaction that allows both reading and writing.

Enums§

Error

Statics§

SCHEMA_VERSION
Latest schema version

Functions§

open_without_migrations
Opens a connection to the specified database. Fails if the db doesn’t exist.