Module event

Module event 

Source
Expand description

Catalyst Election Database crate

Modulesยง

common ๐Ÿ”’
Reusable common database objects
config ๐Ÿ”’
Configuration query
error ๐Ÿ”’
Database Errors
schema_check ๐Ÿ”’
Check if the schema is up-to-date.
signed_docs ๐Ÿ”’
Signed docs queries

Structsยง

EventDB ๐Ÿ”’
The Catalyst Event SQL Database

Enumsยง

EventDBConnectionError ๐Ÿ”’
EventDB Errors

Constantsยง

DATABASE_SCHEMA_VERSION ๐Ÿ”’
Database version this crate matches. Must equal the last Migrations Version Number from event-db/migrations.

Staticsยง

DEEP_QUERY_INSPECT ๐Ÿ”’
Is Deep Query Analysis enabled or not?
EVENT_DB_POOL ๐Ÿ”’
Postgres Connection Manager DB Pool Instance
EVENT_DB_PROBE_TASK ๐Ÿ”’
Background Event DB probe check

Functionsยง

establish_connection_pool
Establish a connection pool to the database. After successful initialisation of the connection pool, spawns a background ready probe task.

Type Aliasesยง

SqlDbPool ๐Ÿ”’
Postgres Connection Manager DB Pool