Description Usage Arguments Details Value Examples
Methods for working with Azure Cosmos DB databases
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | get_cosmos_database(object, ...)
## S3 method for class 'cosmos_endpoint'
get_cosmos_database(object, database, ...)
create_cosmos_database(object, ...)
## S3 method for class 'cosmos_endpoint'
create_cosmos_database(
object,
database,
autoscale_maxRUs = NULL,
manual_RUs = NULL,
headers = list(),
...
)
delete_cosmos_database(object, ...)
## S3 method for class 'cosmos_endpoint'
delete_cosmos_database(object, database, confirm = TRUE, ...)
## S3 method for class 'cosmos_database'
delete_cosmos_database(object, ...)
list_cosmos_databases(object, ...)
## S3 method for class 'cosmos_endpoint'
list_cosmos_databases(object, ...)
|
object |
A Cosmos DB endpoint object as obtained from |
database |
The name of the Cosmos DB database. |
autoscale_maxRUs, manual_RUs |
For |
headers, ... |
Optional arguments passed to lower-level functions. |
confirm |
For |
These are methods for managing Cosmos DB databases using the core (SQL) API.
get_cosmos_database
and create_cosmos_database
return an object of class cosmos_database
. list_cosmos_databases
returns a list of such objects.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
endp <- cosmos_endpoint("https://myaccount.documents.azure.com:443/", key="mykey")
create_cosmos_database(endp, "mydatabase")
list_cosmos_databases(endp)
db <- get_cosmos_database(endp, "mydatabase")
delete_cosmos_database(db)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.