Skip to main content

Module pg

Module pg 

Source
Expand description

Postgres backend (synchronous postgres crate).

Credentials are out of band: connect_postgres takes a full connection string that the caller assembled at connect time (see conn::open, which injects the password from an env var). This module never logs a connection string — a URI can carry a secret, so errors are redacted.

Functions§

connect_postgres
Open a Postgres connection from a full libpq/URI connection string.