A lightweight wrapper around postgresqlCopyInDataframe that allows for custom field lists and temporary tables. It only allows numeric, character, integer, date/time and bool types. It's more useful than dbWriteTable because it allows SQL-copying into tables that have fields other than the data.frame. Also using pg.copy you can SQL-copy in transactions with temp tables.
1 | pg.copy(con, tbl.name, DT)
|
con |
PostgreSQLConnection |
tbl.name |
character |
tbl.name |
PostgreSQLConnection |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.