src/dirbs/api/__init__.py
def verify_schema() -> None:
    """Function to verify the schema before the first request.

    Raises:
        ServiceUnavailable: in-case if schema is invalid or requires upgrade
    """
    with get_db_connection() as conn:
        try:
            utils.verify_db_schema(conn, 'dirbs_core_api')
        except utils.DatabaseSchemaException:
            raise ServiceUnavailable(description='Invalid database schema or database schema requires upgrade')
Function to verify the schema before the first request.

    Raises:
        ServiceUnavailable: in-case if schema is invalid or requires upgrade
    
Function to verify the schema before the first request.
Function to verify the schema before the first request .
def verify_schema() -> None:
    with get_db_connection() as conn:
        try:
            utils.verify_db_schema(conn, 'dirbs_core_api')
        except utils.DatabaseSchemaException:
            raise ServiceUnavailable(description='Invalid database schema or database schema requires upgrade')
def verify_schema ( ) -> None : with get_db_connection ( ) as conn : try : utils . verify_db_schema ( conn , 'dirbs_core_api' ) except utils . DatabaseSchemaException : raise ServiceUnavailable ( description = 'Invalid database schema or database schema requires upgrade' )
Function to verify the schema before the first request.
Function to verify the schema before the first request .
"""Function to verify the schema before the first request.

    Raises:
        ServiceUnavailable: in-case if schema is invalid or requires upgrade
    """
in-case if schema is invalid or requires upgrade
in - case if schema is invalid or requires upgrade
ServiceUnavailable