Module postgres

Source

StructsΒ§

AcceptAnyVerifier πŸ”’
For Prefer/Require mode, we accept any server certificate without verification.
NoHostnameVerification πŸ”’
For VerifyCa mode, we verify the server certificate against our CA store and skip verify server’s HostName.
PgClient
PgExecutorFactory
PgSqlTemplateFactory πŸ”’
Factory for building sql templates.
PgSqlTemplateSet
Templates for the given table name.
PgTxnClient
RangeTemplate πŸ”’
Templates for range request.
TlsOption
TLS configuration for PostgreSQL connections. This mirrors the TlsOption from servers::tls to avoid circular dependencies.

EnumsΒ§

RangeTemplateType πŸ”’
Type of range template.
TlsMode
TLS mode configuration for PostgreSQL connections. This mirrors the TlsMode from servers::tls to avoid circular dependencies.

ConstantsΒ§

EMPTY πŸ”’
PG_STORE_NAME πŸ”’

FunctionsΒ§

create_postgres_tls_connector
Creates a PostgreSQL TLS connector based on the provided configuration.
is_prefix_range πŸ”’
key_value_from_row πŸ”’
Converts a row to a KeyValue.
load_ca πŸ”’
load_certs πŸ”’
load_private_key πŸ”’
pg_generate_in_placeholders πŸ”’
Generate in placeholders for PostgreSQL.
range_template πŸ”’
Determine the template type for range request.

Type AliasesΒ§

PgStore
A PostgreSQL-backed key-value store for metasrv. It uses [deadpool_postgres::Pool] as the connection pool for RdsStore.