dbInsertOrReplace: Save records from a data frame into a db table, replacing...

View source: R/dbInsertOrReplace.R

dbInsertOrReplaceR Documentation

Save records from a data frame into a db table, replacing existing records when primary keys collide.

Description

Seems like an obvious missing piece of the DBI. Ideally, dbWriteTable would have a boolean 'replace' argument that served the same purpose; i.e. record-wise overwrite, rather than table-wise.

Usage

dbInsertOrReplace(con, name, df)

Arguments

con

DBI database connection

name

name of table to insert or replace records into

df

data from from which to write data.

Value

no return value

Author(s)

John Brzustowski jbrzusto@REMOVE_THIS_PART_fastmail.fm


MotusWTS/motusServer documentation built on Dec. 3, 2024, 10:47 a.m.