data_access_api.utils.sql_parsers
Functions
|
Extracts the missing table or column name using a regex pattern. |
Module Contents
- data_access_api.utils.sql_parsers.extract_missing_identifier(error_msg: str, pattern: str) str[source]
Extracts the missing table or column name using a regex pattern.
- Parameters:
error_msg (str) – The original error message from psycopg2.
pattern (str) – The regex pattern to extract the identifier.
- Returns:
The extracted identifier or fallback message.
- Return type:
str