Skip to contents

creates the name of the change tracking table so it's set in one location

Usage

cdr_name_delta_tbl(db_tbl_name, chg_log_suffix = "_DELTAS")

Arguments

db_tbl_name

char string: name of the primary table the deltas table will track

chg_log_suffix

if specified, appends your string to your chg_log DB table name rather than "_DELTAS"

Value

char string: name of the table to track changes to the primary table

Examples

  crudr:::cdr_name_delta_tbl('some_table_name')
#> some_table_name_DELTAS
  crudr:::cdr_name_delta_tbl('some_table_name', chg_log_suffix = '_deltas')
#> some_table_name_deltas
  crudr:::cdr_name_delta_tbl('some_table_name', chg_log_suffix = '_chglog')
#> some_table_name_chglog