inst/prepare_database.R

# A short script to get the database prepared for inserting; this script 
# can also be run if new tables are configured in yaml files but not yet 
# actually created in the database
library(btclearn)

# Create all tables from configurations
create_all_tables_from_configurations(drop_first = FALSE)

# Populate lookup tables
populate_lookup_tables()

# Validate that all tables are created
all(sapply(btclearn:::database_tables, get_full_table_name) %in% btclearn::get_all_table_names())
kyleengel/btclearn documentation built on June 7, 2018, 12:26 a.m.