|
|
| LOGGER = logging.getLogger(__name__) |
| |
|
string | PG_ARG_DEFAULT = "arg_default" |
| |
|
string | PGARG_COL_SCHMA = "column_schema" |
| |
|
string | PGARG_COLL = "collection" |
| |
|
string | PGARG_CLN_BFRE_INSRT = "cleanup_before_insert" |
| |
|
string | PGARG_RTRNG_COLMN = "returning_col" |
| |
|
string | PGARG_VRBSE = "verbose" |
| |
|
string | PGARG_WHR_CONDS = "where_conditions" |
| |
|
string | PGARG_RTRN_ONLY_CNT = "return_only_count" |
| |
|
string | PGARG_SLCT_COLS = "select_columns" |
| |
|
string | PGARG_HNDLR_SPECIFIC = "handler_specific_args" |
| |
| dictionary | PGDEF_ARGS_DICT |
| |
Main module that handles all database operations.
- Each database operation can take relevant optional parameters.
- Safe sql query generation is performed in ody_migr_db_handler.py script.
Specific handler such as `menu_insert_cu_featuremenu` must catch and
raise psycopg2 specific database errors and raise so that execute_migration
sees them and handles appropriately. A decorator `pg_crsr_hndlr_decrtr` is
used for that purpose.