View source: R/peekds_validators.R
ds.validate_for_db_import | R Documentation |
check all csv files against database schema for database import
ds.validate_for_db_import(
dir_csv,
cdi_expected,
file_ext = ".csv",
is_null_field_required = TRUE
)
dir_csv |
the folder directory containing all the csv files, the path should end in "processed_data" |
cdi_expected |
specifies whether cdi_data is to be expected to be present in the imported data |
file_ext |
the default is ".csv" |
an empty string if all tables passed the validator; otherwise, the function returns a list of messages describing detailed issues that needs to be fixed
## Not run:
msg_error_all <-ds.validate_for_db_import(dir_csv = "./processed_data")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.