Module openvet_storage::database

source ·
Expand description

§Database access, migration and functions

OpenVet uses SQLite as a database. It does this because the amount of data that it needs to handle is small, SQLite is easily extensible and easy to back up.

This module handles:

  • Augmenting SQLite with user-defined functions for ensuring the integrity of the database
  • Backing up the database. Database backups are performed periodically and uploaded to the object storage.
  • Migrating the database.
  • Providing an abstraction for using the database.

It uses a pool of database connections for concurrent access.

Modules§

Structs§

Enums§

Traits§

Functions§

Type Aliases§

  • Type alias for using [deadpool::managed::Pool] with [rusqlite].