Skip to main content

Module db_handler

Module db_handler 

Source

Structs§

DieselEventHandler
DynConnectionManager
Connection manager that resolves the database URL on every connect() call.
IntegrityQueryResults
Aggregated results from all integrity checks, run on a single DB connection. Each field is an independent query result so a single failing check doesn’t block the others.
LiquidationBonusApplyResult
Result of applying a liquidation bonus to the winner’s account.
PortfolioReplayEvent
A deserialized engine event used during portfolio replay after snapshot load.
SettlementResult
Result of an idempotent settlement attempt.

Enums§

DbAuthConfig
How the application authenticates to PostgreSQL.

Functions§

redact_database_url 🔒
Redact credentials from a database URL for safe logging. Turns postgres://user:pass@host:5432/db into postgres://***@host:5432/db.

Type Aliases§

DbPool
Synchronous r2d2 connection pool for Postgres.