build_insert_statements: Function to build 'INSERT INTO' SQL statements from a data...

View source: R/build_insert_statements.R

build_insert_statementsR Documentation

Function to build INSERT INTO SQL statements from a data frame.

Description

Function to build INSERT INTO SQL statements from a data frame.

Usage

build_insert_statements(table, df, squish = FALSE)

Arguments

table

Database table name to insert into.

df

Data frame to use to create statements.

squish

Should white space around commas and equal signs be removed to make the SQL statement shorter?

Value

Character vector with a length of nrow(df).

Author(s)

Stuart K. Grange


skgrange/databaser documentation built on April 21, 2024, 6:30 a.m.