td_upload {RTD} | R Documentation |
Upload data.frame to TD
Description
Upload data.frame to TD
Usage
td_upload(
conn,
dbname,
table,
df,
mode = "bulk_import",
embulk_dir,
overwrite = FALSE,
append = FALSE
)
Arguments
conn |
|
dbname |
Target destination database name. |
table |
Target table name. |
df |
Input data.frame. |
mode |
Write mode. "bulk_import" or "embulk". Default: "bulk_import" |
embulk_dir |
Path to embulk. [optional] |
overwrite |
Flag for overwriting the table if exists. It doesn't overwrite database. This flag sets "replace" mode for embulk-output-td. |
append |
Flag for append data into the table if exists. It doesn't overwrite database. This flag sets "append" mode for embulk-output-td. |
Examples
## Not run:
td_upload_embulk("mydb", "iris", iris)
# With overwrite option
td_upload_embulk("mydb", "iris", iris, overwrite = TRUE)
# With append option
td_upload_embulk("mydb", "iris", iris, append = TRUE)
# With overwrite option
td_upload_embulk("mydb", "iris", iris, "/path/to/embulk", overwrite = TRUE)
## End(Not run)
[Package RTD version 0.4.1 Index]