ds.validate_for_db_import: check all csv files against database schema for database...

View source: R/peekds_validators.R

ds.validate_for_db_importR Documentation

check all csv files against database schema for database import

Description

check all csv files against database schema for database import

Usage

ds.validate_for_db_import(
  dir_csv,
  cdi_expected,
  file_ext = ".csv",
  is_null_field_required = TRUE
)

Arguments

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"

Value

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

Examples

## Not run: 
msg_error_all <-ds.validate_for_db_import(dir_csv = "./processed_data")

## End(Not run)


langcog/peekbankr documentation built on Dec. 19, 2024, 1:58 a.m.