Insert rows into a database table
db_insert(df, table, db, ...)
df | data.frame |
---|---|
table | character vector of an optional schema and table name |
db | database object returned by |
... | further parameters passed to |
RMySQL::dbWriteTable
, RPostgreSQL::dbReadTable-methods
if (FALSE) { options('db_config_path' = system.file('example_db_config.yaml', package = 'dbr')) db_insert(mtcars, 'mtcars', 'sqlite') db_append(mtcars, c('dm', 'mtcars'), 'sqlite') }