Update records
dbxUpdate( conn, table, records, where_cols, batch_size = NULL, transaction = TRUE )
conn
: A DBIConnection objecttable
: The table name to updaterecords
: A data frame of records to insertwhere_cols
: The columns to use for WHERE clausebatch_size
: The number of records to update in a single transaction (defaults to all)transaction
: Wrap the update in a transaction (defaults to true)db <- dbxConnect(adapter="sqlite", dbname=":memory:") table <- "forecasts" DBI::dbCreateTable(db, table, data.frame(id=1:3, temperature=20:22)) records <- data.frame(id=c(1, 2), temperature=c(16, 13)) dbxUpdate(db, table, records, where_cols=c("id"))