pub async fn get_connection_from_env() -> Result<PgPool, Box<dyn Error + Send + Sync + 'static>>
Expand description
Returns a Postgres connection pool constructed using configuration read from environment
ยงEnvironment variables read:
DB_SYNC_POSTGRES_CONNECTION_STRING
: Postgres connection pool, eg.postgres://postgres-user:postgres-password@db-sync-postgres-host:5432/db-sync-db