Skip to main content

Module client

Module client 

Source
Expand description

Database connection pool wrapper.

DatabaseClient is an enum that wraps either a PostgreSQL or SQLite connection pool (via sqlx). It provides auto-detection from the connection URL and exposes typed fetch_all, fetch_optional, fetch_one, and execute helpers used by the generated query builders.

PoolConfig allows fine-grained control over the underlying connection pool (max/min connections, timeouts, etc.).

Structs§

PoolConfig
Configuration options for the database connection pool.

Enums§

DatabaseClient
The database client, wrapping an sqlx connection pool.