Skip to main content

Module diesel_db

Module diesel_db 

Source
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§

DieselDb
Async persistence handler. Owns a deadpool-managed diesel-async connection pool and implements all API-path traits from hypercall_db (analytics, integrity, liquidation, notifications, nonces, push, usernames).
NoVerifier 🔒
Accepts any server certificate. Used for sslmode=require where the DB uses a self-signed cert (Akamai managed Postgres). This matches libpq’s behavior: require encrypts 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§

AsyncDbPool
Async connection pool type alias (deadpool + diesel-async).