Expand description
Create, start, introspect, stop, and destroy PostgreSQL clusters.
Re-exports§
pub use sqlx;
Modules§
Structs§
- Cluster
- Representation of a PostgreSQL cluster.
Enums§
Statics§
- DATABASE_
POSTGRES postgres
is always created byinitdb
when building a PostgreSQL cluster.- DATABASE_
TEMPLAT E0 template0
is always present in a PostgreSQL cluster.- DATABASE_
TEMPLAT E1 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.