dettl_create_log_table.Rd
Initialise the database by creating log table if it doesn't already exist
dettl_create_log_table(path, db_name)
Path to import directory containing db connection configuration.
The name of the db to connect to. Connection info must be
configured via the dettl_config.yml
.
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