Create a new database catalog only if it does not already exist.
The database catalog to create
A Promise that resolves when the operation completes
Execute a grant statement.
The grant to perform
A Promise that resolves when the operation completes
Grants membership in a role to each of the given roles.
Role memberships apply to the entire server, not to a single database. The
connected user must have ADMIN OPTION on the role, such as the
CREATEROLE user that created it.
A Promise that resolves to the new memberships
Create a new login only if it does not already exist.
The login to create
A Promise that resolves when the operation completes
Tests to see if the database already exists.
The database name
A Promise that resolves to true if the database exists
Tests to see if the user already exists.
The username to test
A Promise that resolves to true if the user exists
A connection to the "postgres" database on a PostegreSQL server.