Expand description
The PostgreSQL backend, behind the same feature that gates it in fraiseql-db.
PostgresAdapter belongs here, not in the unconditional list above. The
blanket pub use fraiseql_db as db; carried each item’s own #[cfg] for
free; enumerating the names drops that, so every line above is an assertion
that the item is ungated in fraiseql-db — and nothing but a feature-OFF
build checks it. make lint-feature-matrix is that build.
PostgreSQL database adapter.
Provides connection pooling and query execution for PostgreSQL.
Modules§
- test_
hooks - Adapter internals the PostgreSQL integration suite drives directly.
Structs§
- Index
Info - One index on a relation, with its key list in declared order (#1307).
- Pool
Prewarm Config - Configuration for connection pool construction and pre-warming.
- Postgres
Adapter - PostgreSQL database adapter with connection pooling.
- Postgres
Introspector - PostgreSQL introspector for fact table metadata.
- Postgres
TlsConfig - Transport security settings for a PostgreSQL connection pool.
- Read
Replica Config - Read-replica configuration for a PostgreSQL adapter (#407).
- Read
Replica Policy ReadReplicaConfigwithout the URLs: how replica routing behaves, separated from where the replicas are (#957).- Search
Path - A validated PostgreSQL
search_path, applied at connection establishment. - Vector
Scan Config - pgvector scan settings applied to every connection a pool opens (#1116).
Enums§
- Hnsw
Iterative Scan - How pgvector’s HNSW index behaves when a filter eliminates the candidates it handed up (#1116).
- Ivfflat
Iterative Scan - The same setting for pgvector’s
IVFFlatindex (#1116). - Postgres
Connector - The connector a pool creates connections with.
- Postgres
SslMode - How much transport security a PostgreSQL connection must have.
Constants§
- MINIMUM_
SERVER_ VERSION_ NUM - The lowest supported
server_version_num(PostgreSQL 18.0).
Functions§
- check_
server_ version - Refuse a server whose
server_version_numis belowMINIMUM_SERVER_VERSION_NUM. - require_
supported_ server - Ask the server behind
clientits version and refuse it below the floor.
Type Aliases§
- Postgres
Where Generator - PostgreSQL WHERE clause generator.