ouisync

Module db

Source

Structs§

  • Database connection
  • 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.
  • Database connection pool.
  • Database connection from pool
  • Transaction that allows only reading.
  • Transaction that allows both reading and writing.

Enums§

Statics§

Functions§