Expand description
Async DieselDb struct with deadpool-based connection pool management.
This module provides the DieselDb struct which owns an async connection
pool to PostgreSQL via diesel-async + deadpool. Domain-specific SQL
lives in sibling modules (integrity, liquidation, nonces, analytics).
Structs§
- Diesel
Db - Async persistence handler. Owns a deadpool-managed
diesel-asyncconnection pool and implements all API-path traits fromhypercall_db(analytics, integrity, liquidation, notifications, nonces, push, usernames). - NoVerifier 🔒
- Accepts any server certificate. Used for
sslmode=requirewhere the DB uses a self-signed cert (Akamai managed Postgres). This matches libpq’s behavior:requireencrypts the connection but does not verify identity.
Functions§
- ensure_
default_ 🔒rustls_ crypto_ provider - Ensure rustls has a process-wide crypto provider before TLS clients are built.
- redact_
url 🔒
Type Aliases§
- Async
DbPool - Async connection pool type alias (deadpool + diesel-async).