get_VersionKey: Get Version Key

Description Usage Arguments Details Value

Description

The key used as a hash for the caching feature.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
get_VersionKey(
  conn,
  conn_fun = "pg13::local_connect(verbose=FALSE)",
  schema = "omop_vocabulary",
  log_schema = "public",
  log_table = "setup_athena_log",
  log_timestamp_field = "sa_datetime",
  template_only = FALSE,
  sql_only = FALSE
)

Arguments

conn

PARAM_DESCRIPTION

conn_fun

PARAM_DESCRIPTION, Default: 'pg13::local_connect(verbose=FALSE)'

schema

PARAM_DESCRIPTION, Default: 'omop_vocabulary'

log_schema

PARAM_DESCRIPTION, Default: 'public'

log_table

PARAM_DESCRIPTION, Default: 'setup_athena_log'

log_timestamp_field

PARAM_DESCRIPTION, Default: 'sa_datetime'

template_only

PARAM_DESCRIPTION, Default: FALSE

sql_only

PARAM_DESCRIPTION, Default: FALSE

Details

If a 'log table' is present as written using the 'setupAthena' package, the VersionKey class object is returned using the last row. If the 'log_table' is not found, the VersionKey is created from a list of the vocabulary_id-vocabulary_version key-value pair from the Vocabulary table.

Value

OUTPUT_DESCRIPTION


patelm9/chariot documentation built on Feb. 19, 2022, 11:29 a.m.