db_upsert_table | R Documentation |
Utility that can be used to sync data against a connection.
db_upsert_table(tbl, df, con = con_bib())
tbl |
table name |
df |
data frame or tibble with the data |
con |
database connection, Default: con_bib() |
not all backend drivers support overwrite and append, therefore param overwrite for dbWriteTable (see docs) is not used
invisibly TRUE on success
dbExistsTable
,dbRemoveTable
,dbWriteTable
## Not run:
if(interactive()){
db_upsert_table("divisions", abm_divisions(), con = con_bib(type = "mssql"))
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.