SqlImport | R Documentation |
Manage SQL based data import.
Manage SQL based data import.
This object should not be initialised directly. Use dettl
to
create the object.
Import can be run by working with import object returned by
dettl
or by running top-level functions. Run the import by
working with this object if you want to step through the import process
stage by stage and inspect the data after each stage.
dettl::Import
-> SqlImport
dettl::Import$begin_transaction()
dettl::Import$commit_transaction()
dettl::Import$extract()
dettl::Import$format()
dettl::Import$get_connection()
dettl::Import$get_log_table()
dettl::Import$help()
dettl::Import$initialize()
dettl::Import$load()
dettl::Import$pre_modify_checks()
dettl::Import$rollback_transaction()
dettl::Import$run_import()
dettl::Import$transform()
reload()
Reload the objects sources to refresh source code or repair a broken Postgres connection.
SqlImport$reload()
read_config()
Read and parse config from path.
SqlImport$read_config()
path <- dettl:::prepare_test_import( system.file("examples", "sql_example", package = "dettl"), system.file("examples", "dettl_config.yml", package = "dettl")) import_path <- file.path(path, "sql_example") import <- dettl::dettl(import_path, db_name = "test") import$run_import(stage = c("extract", "transform", "load"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.