Description Usage Arguments Details Value See Also Examples
MongoDB endpoint for Azure Cosmos DB
1 2 3 4 5 6 7 8 9 10 11 | cosmos_mongo_endpoint(
host,
key,
mongo_options = list(),
connection_string = NULL
)
cosmos_mongo_connection(endpoint, ...)
## S3 method for class 'cosmos_mongo_endpoint'
cosmos_mongo_connection(endpoint, collection, database, ...)
|
host |
For |
key |
For |
mongo_options |
For |
connection_string |
Alternatively, the full connection string for the MongoDB endpoint. If this is supplied, all other arguments to |
endpoint |
For |
... |
Optional arguments passed to lower-level functions. |
collection, database |
For |
These functions act as a bridge between the Azure resource and the functionality provided by the mongolite package.
For cosmos_mongo_endpoint
, an object of S3 class cosmos_mongo_endpoint
.
For cosmos_mongo_connection
, an object of class mongolite::mongo
which can then be used to interact with the given collection.
az_cosmosdb, mongolite::mongo
For the SQL API client framework: cosmos_endpoint, cosmos_database, cosmos_container, query_documents
1 2 3 4 5 6 7 8 9 | ## Not run:
mendp <- cosmos_mongo_endpoint("https://mymongoacct.mongo.cosmos.azure.com:443",
key="mykey")
cosmos_mongo_connection(mendp, "mycollection", "mydatabase")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.