datacube.drivers.common_psql.ensure_role#
- datacube.drivers.common_psql.ensure_role(conn, role)[source]#
Ensure that a role exists and applies the role hierarchy. :type conn:
Connection:param conn: An SQLAlchemy connection object :type role:UserRoleBase:param role: The role object to ensure. :rtype:bool:return: Returns True on success.