insert_upload_job: Create a new upload job deprecated

Description Usage Arguments See Also Examples

Description

Please use api-job instead.

Usage

1
2
3
insert_upload_job(project, dataset, table, values, billing = project,
  create_disposition = "CREATE_IF_NEEDED",
  write_disposition = "WRITE_APPEND", ...)

Arguments

project, dataset

Project and dataset identifiers

table

name of table to insert values into

values

data frame of data to upload

billing

project ID to use for billing

create_disposition

behavior for table creation if the destination already exists. defaults to "CREATE_IF_NEEDED", the only other supported value is "CREATE_NEVER"; see the API documentation for more information

write_disposition

behavior for writing data if the destination already exists. defaults to "WRITE_APPEND", other possible values are "WRITE_TRUNCATE" and "WRITE_EMPTY"; see the API documentation for more information

...

Additional arguments passed on to the underlying API call. snake_case names are automatically converted to camelCase.

See Also

Google API documentation: https://developers.google.com/bigquery/loading-data-into-bigquery#loaddatapostrequest

Other jobs: get_job, insert_extract_job, insert_query_job, wait_for

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
list_datasets(bq_test_project)
list_tables("193487687779", "houston")
job <- insert_upload_job("193487687779", "houston", "mtcars", mtcars)
wait_for(job)
list_tables("193487687779", "houston")
delete_table("193487687779", "houston", "mtcars")

## End(Not run)

wilpoole-essence/bigrquery documentation built on May 6, 2019, 8:06 p.m.