View source: R/cdr_DB2RT_primary.R
cdr_DB2RT_primary | R Documentation |
Download database table and sync it to user interface
cdr_DB2RT_primary(conn_pool, db_tbl_name, key_col)
conn_pool |
pool connection object from package 'pool' |
db_tbl_name |
string: name of the specific table to update or |
key_col |
string: the field that contains your unique ID key for each row |
a DT object to present the primary table
## Not run:
con <- pool::dbPool(DBI::dbConnect(RSQLite::SQLite(), 'iris.db'))
cdr_make_db_tbls(con, iris)
cdr_DB2RT_primary(con, 'iris')
pool::dbRemoveTable(con,'iris')
pool::dbRemoveTable(con,'iris_DELTAS')
pool::poolClose(con)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.