Insert only those rows without an existing primary key. NOTE: This can cause a race condition under parallel execution. Use at your own risk.
1 2 | dbInsertNew(conn, table, value, primary.key, colnames = names(value),
coltypes, run = TRUE)
|
conn |
the database connection. |
table |
the table name, possibly including the schema |
value |
the local value to write |
primary.key |
the primary key or unique value constraint |
colnames |
the column names, if different than the names in |
coltypes |
column types. If missing, an attempt is made to retrieve them from the database. |
run |
whether to run ( |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.