datacube.drivers.common_psql.has_roles#

datacube.drivers.common_psql.has_roles(conn, roles, with_create_role=False, superuser=False)[source]#

Check if a group of roles exist - calls has_role for each role.

Return type:

bool

Returns:

Returns True if all roles exist (with the specified attributes)