datacube.drivers.common_psql.create_user#
- datacube.drivers.common_psql.create_user(conn, username, password, role, description=None)[source]#
Create a new database user with the specified role.
- Parameters:
conn (
Connection) – An SQLAlchemy connection objectusername (
str) – The username for the new userpassword (
str) – The password for the new userrole (
UserRoleBase) – The role to assign the userdescription (
str|None) – A description of the user (optional)
- Return type:
- Returns:
True on success, False on failure, including if the user already exists.