src/dirbs/utils.py
def verify_core_schema(conn):
    """
    Function used to check whether Core schema exists and has correct ownership.

    Arguments:
        conn: dirbs db connection object
    Raises:
        DatabaseSchemaException: if the schema `core` is not installed or if the schema `core` is not owned by
                                 `dirbs_core_power_user`
    """
    if not query_schema_existence(conn, 'core'):
        raise DatabaseSchemaException("Missing schema \'core\' in DB. Was dirbs-db install run successfully?")

    if query_schema_ownership(conn, 'core') != 'dirbs_core_power_user':
        raise DatabaseSchemaException("Schema \'core\' is not owned by dirbs_core_power_user!")

    Function used to check whether Core schema exists and has correct ownership.

    Arguments:
        conn: dirbs db connection object
    Raises:
        DatabaseSchemaException: if the schema `core` is not installed or if the schema `core` is not owned by
                                 `dirbs_core_power_user`
    
Function used to check whether Core schema exists and has correct ownership.
Function used to check whether Core schema exists and has correct ownership .
def verify_core_schema(conn):
    if not query_schema_existence(conn, 'core'):
        raise DatabaseSchemaException("Missing schema \'core\' in DB. Was dirbs-db install run successfully?")
    if query_schema_ownership(conn, 'core') != 'dirbs_core_power_user':
        raise DatabaseSchemaException("Schema \'core\' is not owned by dirbs_core_power_user!")
def verify_core_schema ( conn ) : if not query_schema_existence ( conn , 'core' ) : raise DatabaseSchemaException ( "Missing schema \'core\' in DB. Was dirbs-db install run successfully?" ) if query_schema_ownership ( conn , 'core' ) != 'dirbs_core_power_user' : raise DatabaseSchemaException ( "Schema \'core\' is not owned by dirbs_core_power_user!" )
Function used to check whether Core schema exists and has correct ownership.
Function used to check whether Core schema exists and has correct ownership .
"""
    Function used to check whether Core schema exists and has correct ownership.

    Arguments:
        conn: dirbs db connection object
    Raises:
        DatabaseSchemaException: if the schema `core` is not installed or if the schema `core` is not owned by
                                 `dirbs_core_power_user`
    """
if the schema `core` is not installed or if the schema `core` is not owned by
`dirbs_core_power_user`
if the schema ` core ` is not installed or if the schema ` core ` is not owned by ` dirbs_core_power_user `
DatabaseSchemaException
conn
dirbs db connection object
dirbs db connection object