API Tables
Staging tables
create_glue_table("P_DB" VARCHAR(16777216), |
|---|
Create staging table and deploy merge objects Parameters:
|
alter_glue_table("P_DB" VARCHAR(16777216), |
|---|
Alters staging table and modifies merge objects accordingly. Only addition of columns is supported. Parameters:
|
drop_glue_table("P_DB" VARCHAR(16777216), |
|---|
Deletes the staging table and all associated merge objects except the merge table. Merge table is backed up as <table name>_BAK_<current timestamp> e.g. ZZVBAK_BAK_20230606084229 Parameters:
|
truncate_glue_table("P_DB" VARCHAR(16777216), |
|---|
Truncates staging table. Merge table is backed up as <table name>_BAK_<current timestamp> e.g. ZZVBAK_BAK_20230606084229 and new one is created. Parameters:
|
delete_selection("P_DB" VARCHAR(16777216), |
|---|
Delete part of the data from both staging and merge table. What data is deleted is based on the P_WHERE_COND parameter. Parameters:
|
delete_merge_inconsistency("P_DB" VARCHAR(16777216), |
|---|
Deletes data from the merge table that is not present in the staging table. It checks the data based on GL_REQUEST column value. Meaning all rows in the merge table with GL_REQUEST value not present in the staging table are deleted. Parameters:
|
switch_trans_to_standard_table("P_DB" VARCHAR(16777216) |
|---|
Transient tables will be recreated as standard tables (the data will remain untouched). Parameters:
|
Metadata
add_active_table( "P_DB" VARCHAR(16777216), |
|---|
Adds metadata entry to the active_tables table. Parameters:
|
get_active_tables() |
|---|
Get data from the active_tables table. Parameters:
|
remove_active_tables("P_DB" VARCHAR(16777216) |
|---|
Remove entry or entries from the active_tables table. Parameters:
|
set_table_active("P_DB" VARCHAR(16777216) |
|---|
Set table(s) as active, meaning merge task is running, in the active_table table. Parameters:
|
set_table_inactive("P_DB" VARCHAR(16777216) |
|---|
Set table(s) as inactive, meaning merge task is suspended, in the active_table table. Parameters:
|