| pyUploadCsv | R Documentation |
Wrapper to python function to upload a csv using Postgres Copy functionality
pyUploadCsv(connection, table, filepath, schema, disableConstraints = FALSE)
connection |
DatabaseConnector connection instance |
table |
Table in database |
filepath |
path to csv |
schema |
database schema containing table reference |
disableConstraints |
(not reccomended) disable constraints prior to upload to speed up process |
## Not run:
connection <- DabaseConnector::connect(
dbms = "postgreql",
server = "myserver.com",
port = 5432,
password = "s",
user = "me",
database = "some_db"
)
ResultModelManager::pyUploadCsv(connection,
table = "my_table",
filepath = "my_massive_csv.csv",
schema = "my_schema"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.