stow {CDMConnector} | R Documentation |
Collect a list of lazy queries and save the results as files
stow(cdm, path, format = "parquet")
cdm |
A cdm object |
path |
A folder to save the cdm object to |
format |
The file format to use: "parquet", "csv", "feather". |
Invisibly returns the cdm input
## Not run:
con <- DBI::dbConnect(duckdb::duckdb(), dbdir = eunomia_dir())
vocab <- cdm_from_con(con, cdm_tables = c("concept", "concept_ancestor"))
stow(vocab, here::here("vocab_tables"))
DBI::dbDisconnect(con, shutdown = TRUE)
## End(Not run)