data_access_api.utils.sql_parsers ================================= .. py:module:: data_access_api.utils.sql_parsers Functions --------- .. autoapisummary:: data_access_api.utils.sql_parsers.extract_missing_identifier Module Contents --------------- .. py:function:: extract_missing_identifier(error_msg: str, pattern: str) -> str Extracts the missing table or column name using a regex pattern. :param error_msg: The original error message from psycopg2. :type error_msg: str :param pattern: The regex pattern to extract the identifier. :type pattern: str :returns: The extracted identifier or fallback message. :rtype: str