MongoLink`
MongoLink`
MongoGetCollection
MongoGetCollection[MongoDatabase[…], name]
connects to a collection name inside the database MongoDatabase[…].
MongoGetCollection[MongoClient[…],dbname,collname]
connects to a collection collname inside the database dbname using client MongoClient[…].
更多信息和选项
- To use MongoGetCollection, you first need to load MongoLink using Needs["MongoLink`"].
- MongoGetCollection[…] returns a MongoCollection object.
- MongoGetCollection[MongoDatabase[…],name] is equivalent to MongoDatabase[…]["name"].
- MongoGetCollection[MongoClient[…], dbname, collname] is equivalent to MongoClient[…][dbname, collname].
- If the collection does not exist, one will be created once a document is inserted.
- MongoGetCollection corresponds to db.getCollection() in the MongoDB manual.
范例
Wolfram Research (2018),MongoGetCollection,Wolfram 语言函数,https://reference.wolfram.com/language/MongoLink/ref/MongoGetCollection.html.
文本
Wolfram Research (2018),MongoGetCollection,Wolfram 语言函数,https://reference.wolfram.com/language/MongoLink/ref/MongoGetCollection.html.
CMS
Wolfram 语言. 2018. "MongoGetCollection." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/MongoLink/ref/MongoGetCollection.html.
APA
Wolfram 语言. (2018). MongoGetCollection. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/MongoLink/ref/MongoGetCollection.html 年