Module database

Source
Expand description

Β§Database Operations

Database crate provides functions that adds/reads values from PostgreSQL database.

Warning: This crate won’t configure PostgreSQL itself and excepts admin privileges to create/drop databases.

ModulesΒ§

aggregator πŸ”’
Verifier Related Database Operations
bitcoin_syncer πŸ”’
header_chain_prover πŸ”’
Header Chain Prover Related Database Operations
operator πŸ”’
Operator Related Database Operations
state_machine πŸ”’
State Machine Related Database Operations
tx_sender πŸ”’
This module includes database functions which are mainly used by the transaction sender.
verifier πŸ”’
Verifier Related Database Operations
wrapper πŸ”’
Type Wrappers for Parsing

StructsΒ§

Database
PostgreSQL database connection details.

ConstantsΒ§

MAX_CONNECTIONS_FOR_POOL
Assuming total of 100 max connections as default, the verifier and operator can share 50 each.

Type AliasesΒ§

DatabaseTransaction
Database transaction for Postgres.