Module primitives::postgres
source · Available on crate feature
postgres only.Expand description
This module is available with the postgres feature.
Other places where you’d find mod postgres implementations is for many of the structs in the crate
all of which implement tokio_postgres::types::FromSql, tokio_postgres::types::ToSql or From<&tokio_postgres::Row>
Statics
Postgres configuration derived from the environment variables:
POSTGRES_DB environment variable - default: POSTGRES_USERPOSTGRES_HOST environment variable - default: localhostPOSTGRES_PASSWORD environment variable - default: postgresA Postgres pool with reasonable settings:
POSTGRES_PORT environment variable - default: 5432POSTGRES_USER environment variable - default: postgres