Create a new role - postgres docs
Arguments:
role_name
[string] - name of the new rolerole_options
[object] - options:superuser
[boolean] - default falsecreatedb
[boolean] - default falsecreaterole
[boolean] - default falseinherit
[boolean] - default truelogin
[boolean] - default falsereplication
[boolean] - default falsebypassrls
[boolean]limit
[number] -password
[string] -encrypted
[boolean] - default truevalid
[string] - timestampinRole
[string or array of strings] - role or array of rolesrole
[string or array of strings] - role or array of rolesadmin
[string or array of strings] - role or array of roles
Reverse Operation: dropRole
Drop a role - postgres docs
Arguments:
role_name
[string] - name of the new role
Alter a role - postgres docs
Arguments:
role_name
[string] - name of the new rolerole_options
[object] - see
Rename a role - postgres docs
Arguments:
old_role_name
[string] - old name of the rolenew_role_name
[string] - new name of the role