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
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.