//! SQLx helpers for installing the HeeRanjID schema and generating IDs from
//! PostgreSQL.

mod error;
mod postgres;

pub use error::{GenerateError, StartupError};
pub use postgres::{
    FETCH_ACTIVE_NODE_SQL, FETCH_EPOCH_SQL, FETCH_NODE_SQL, GENERATE_HEERID_SQL,
    GENERATE_RANJID_SQL, HeerConfig, HeerNode, INSTALL_SQL, SCHEMA_SQL, SEED_SQL, SESSION_SQL,
    fetch_active_node, fetch_epoch, fetch_node, generate_heerid, generate_heerids, generate_ranjid,
    generate_ranjids, install_schema, seed_default_node, set_ranj_node_id, validate_epoch,
    validate_heer_node_id, validate_startup,
};
