| getInsertSQL {xml2relational} | R Documentation | 
Exporting the relational data model and data to a database
Description
Produces ready-to-run SQL INSERT statements to import the
data transformed with toRelational() into a SQL database.
Usage
getInsertSQL(
  ldf,
  table.name,
  line.break = "\n",
  one.statement = FALSE,
  tz = "UTC"
)
Arguments
| ldf | A list of dataframes created by
 | 
| table.name | Name of the table from the data table list  | 
| line.break | Line break character that is added to the end of each
 | 
| one.statement | Determines whether all  | 
| tz | The code of the timezone used for exporting timestamp data. Default it
 | 
Value
A character vector with exactly one element (if argument
one.statement = TRUE) or with one element per INSERT
statement.
See Also
Other xml2relational: 
getCreateSQL(),
savetofiles(),
toRelational()
Examples
# Find path to custmers.xml example file in package directory
path <- system.file("", "customers.xml", package = "xml2relational")
db <- toRelational(path)
sql.code <- getInsertSQL(db, "address")