sqlData: Convert a data frame into form suitable for upload to a SQL...

Description Usage Arguments Details

Description

This is a generic method that coerces R objects into vectors suitable for upload to the database. The output will vary a little from method to method depending on whether the main upload device is through a single SQL string or multiple parameterised queries.

Usage

1
2
3
4
sqlData(con, value, row.names = NA, ...)

## S4 method for signature 'DBIConnection'
sqlData(con, value, row.names = NA, ...)

Arguments

con

A database connection.

value

A data frame

row.names

Either TRUE, FALSE, NA or a string.

If TRUE, always translate row names to a column called "row_names". If FALSE, never translate row names. If NA, translate rownames only if they're a character vector.

A string is equivalent to TRUE, but allows you to override the default name.

For backward compatibility, NULL is equivalent to FALSE.

...

Other arguments used by individual methods.

Details

The default method:


rstats-db/SQL documentation built on May 28, 2019, 3:35 a.m.