Skip to main content

Module postgres

Module postgres 

Source
Expand description

PostgreSQL implementation of crate::services::DatabaseProvider.

This module is part of the documented sqlx allowlist: every sqlx::query(_) call here either binds a crate::models::QuerySelector string supplied at runtime (extension-defined SQL, dynamic admin queries) or executes SELECT 1 for connection probing. Static SQL goes through the verified macros elsewhere.

Copyright (c) systemprompt.io — Business Source License 1.1. See https://systemprompt.io for licensing details.

Modules§

connection
Initial-connect retry policy for PostgresProvider.
conversion
Conversions between SQLx PostgreSQL rows, QueryResult / crate::models::JsonRow values, and parameter binders.
transaction
Concrete DatabaseTransaction for PostgreSQL.

Structs§

PostgresProvider