Description Usage Arguments API documentation Examples
Basic create-read-update-delete verbs for datasets.
1 2 3 4 5 6 7 8 9 10 11 | bq_dataset_create(x, ...)
bq_dataset_meta(x, fields = NULL)
bq_dataset_exists(x)
bq_dataset_update(x, ...)
bq_dataset_delete(x, delete_contents = FALSE)
bq_dataset_tables(x, page_size = 50, max_pages = Inf, warn = TRUE, ...)
|
x |
A bq_dataset |
... |
Additional arguments passed on to the underlying API call. snake_case names are automatically converted to camelCase. |
fields |
An optional field specification for partial response |
delete_contents |
If |
page_size |
Number of items per page. |
max_pages |
Maximum number of pages to retrieve. Use |
warn |
If |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | if (bq_testable()) {
ds <- bq_dataset(bq_test_project(), "dataset_api")
bq_dataset_exists(ds)
bq_dataset_create(ds)
bq_dataset_exists(ds)
str(bq_dataset_meta(ds))
bq_dataset_delete(ds)
bq_dataset_exists(ds)
# Use bq_test_dataset() to create a temporary dataset that will
# be automatically deleted
ds <- bq_test_dataset()
bq_table_create(bq_table(ds, "x1"))
bq_table_create(bq_table(ds, "x2"))
bq_table_create(bq_table(ds, "x3"))
bq_dataset_tables(ds)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.