Module pg

Source

Structs§

PostgresConnectOptions
PostgresConnectOptionsBuilder
Builder for PostgresConnectOptions.

Enums§

PostgresConnectOptionsBuilderError
Error type for PostgresConnectOptionsBuilder

Functions§

connect_pg
Connects to a Postgres database with the provided connection options returning a connection pool.
drop_postgres
Drops the Postgres database with the given name using the provided connection pool.
get_postgres_connect_options
Constructs PostgresConnectOptions by merging provided arguments, environment variables, and defaults.
init_postgres
Initializes the Postgres database by creating schema, roles, and executing SQL files from schema_dir.