cdr_label_chg_log_activity: Create change types for the change-log table

View source: R/cdr_label_chg_log_activity.R

cdr_label_chg_log_activityR Documentation

Create change types for the change-log table

Description

Attach a column of data to the change-log describing the type of user change, i.e.

  • 'created' - user created a new ID

  • 'deleted' user deleted an ID and all associated row elements

  • 'updated' user made a change to a field of an existing ID

Usage

cdr_label_chg_log_activity(chg_log, key_field = "UID")

Arguments

chg_log

a change-log tibble pulled from the DB

key_field

the field in the primary table that contains the unique-ID for each observation

Value

the change-log tibble with activity type attached

Examples

## Not run: 
  cdr_label_chg_log_activity(chg_log, 'UID')

## End(Not run)


eauleaf/crudr documentation built on Jan. 29, 2024, 4:39 p.m.