bqr_copy_dataset: Copy datasets

Description Usage Arguments Details Value Examples

View source: R/datasets.R

Description

Uses bqr_copy_table to copy all the tables in a dataset.

Usage

1
2
3
4
5
6
bqr_copy_dataset(source_datasetid, destination_datasetid,
  source_projectid = bqr_get_global_project(),
  destination_projectid = bqr_get_global_project(),
  createDisposition = c("CREATE_IF_NEEDED", "CREATE_NEVER"),
  writeDisposition = c("WRITE_TRUNCATE", "WRITE_APPEND", "WRITE_EMPTY"),
  destination_prefix = NULL)

Arguments

source_datasetid

source datasetId

destination_datasetid

destination datasetId

source_projectid

source table's projectId

destination_projectid

destination table's projectId

createDisposition

Create table's behaviour

writeDisposition

Write to an existing table's behaviour

destination_prefix

A prefix appended to the destination tableIds

Details

You can not copy across dataset regions (e.g. EU to US), or copy BigQuery Views.

Value

A named list of jobs of the source datasets, with details of job started.

Examples

1
2
3
4
5
6
## Not run: 

  bqr_copy_dataset("source_dataset", "destination_dataset")


## End(Not run)

bigQueryR documentation built on Oct. 9, 2019, 5:05 p.m.