insert_to: Insert data to an SQL connection

Description Usage Arguments Value

View source: R/sql.R

Description

Insert data to an SQL connection

Usage

1
2
3
4
5
6
7
insert_to(
  con,
  tbl,
  dt,
  conflict = c("default", "replace", "ignore"),
  constraint = data.table::key(dt)
)

Arguments

con

an SQL connection

tbl

name of table to insert to

dt

data to insert

conflict

how to deal with conflict

constraint

constrained columns, only used when conflict == "replace" and connection is to a PostgreSQL database

Value

number of rows inserted


imlijunda/tswbench documentation built on June 12, 2021, 12:45 p.m.