Module cluster

Module cluster 

Source
Expand description

Create, start, introspect, stop, and destroy PostgreSQL clusters.

Re-exports§

pub use sqlx;

Modules§

backup
config
resource
A resource for a Cluster.

Structs§

Cluster
Representation of a PostgreSQL cluster.

Enums§

ClusterError
ClusterStatus

Statics§

DATABASE_POSTGRES
postgres is always created by initdb when building a PostgreSQL cluster.
DATABASE_TEMPLATE0
template0 is always present in a PostgreSQL cluster.
DATABASE_TEMPLATE1
template1 is always present in a PostgreSQL cluster.

Functions§

determine_superuser_role_names
Determine the names of superuser roles in a cluster (that can log in).
exists
A fairly simplistic but quick check: does the directory exist and does it look like a PostgreSQL cluster data directory, i.e. does it contain a file named PG_VERSION?
run
Create and start a cluster at the given path, with the given options.
version
Yields the version of PostgreSQL required to use a cluster.

Type Aliases§

ClusterGuard
Options