Initialise the database by creating log table if it doesn't already exist

dettl_create_log_table(path, db_name)

Arguments

path

Path to import directory containing db connection configuration.

db_name

The name of the db to connect to. Connection info must be configured via the dettl_config.yml.

Examples

path <- dettl:::prepare_test_import(
  system.file("examples", "person_information", package = "dettl"),
  system.file("examples", "dettl_config.yml", package = "dettl"),
  add_log_table = FALSE
)
dettl::dettl_create_log_table(file.path(path, "person_information"), "test")
#> Creating log table in DB test.
#> [1] 0