Description Usage Arguments Value See Also Examples
View source: R/xml2relational.r
Produces ready-to-run SQL INSERT
statements to import the
data transformed with toRelational()
into a SQL database.
1 2 3 4 5 6 7 | getInsertSQL(
ldf,
table.name,
line.break = "\n",
one.statement = FALSE,
tz = "UTC"
)
|
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
|
A character vector with exactly one element (if argument
one.statement = TRUE
) or with one element per INSERT
statement.
Other xml2relational:
getCreateSQL()
,
savetofiles()
,
toRelational()
1 2 3 4 5 | # 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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.