# Functions
ConnectToDB connects to the PostgreSQL db using the given credentials.
No description provided by the author
DatabaseExists checks if a database exists.
No description provided by the author
No description provided by the author
DoesUserExist checks if db contains user.
DropUser drops a user from db.
FindBadChars find the bad chars in a postgresql user.
No description provided by the author
GetUserRoleOptions gets the server-level RoleOptions the user has as a set.
GetUserServerRoles gets the server-level roles the user has as a set.
ReconcileUserRoleOptions revokes and grants server-level role options as needed so the role options for the user match those passed in.
ReconcileUserServerRoles revokes and grants server-level roles as needed so the roles for the user match those passed in.
RoleExists checks if db contains role.
No description provided by the author
# Constants
DefaultMaintanenceDatabase is the name of the database in a postgresql server where users and roles are stored (and which we can always assume will exist).
PDriverName is driver name for psqldb connection.
PSqlServerPort is the default server port for sql server.
# Variables
see https://www.postgresql.org/docs/current/sql-createrole.html.
see https://www.postgresql.org/docs/current/sql-createrole.html.
see https://www.postgresql.org/docs/current/sql-createrole.html.
see https://www.postgresql.org/docs/current/sql-createrole.html.
see https://www.postgresql.org/docs/current/sql-createrole.html.
see https://www.postgresql.org/docs/current/sql-createrole.html.
see https://www.postgresql.org/docs/current/sql-createrole.html.
see https://www.postgresql.org/docs/current/sql-createrole.html.
# Structs
RoleOptions PostgreSQL role options but without SuperUser or BypassRLS here, because they are only settable with an existing a superuser Azure Flexible server does not offer superuser access for customers.
No description provided by the author
No description provided by the author
Use this type only for user, which are already checked.
# Type aliases
No description provided by the author