Create an empty mongo.bson object
创建一个空mongo.bson对象
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Returns an empty mongo.bson object. mongo.bson objects have "mongo.bson" as their class and contain an externally managed pointer to the actual data. This pointer is stored in the "mongo.bson" attribute of the object.
返回一个空mongo.bson对象。 mongo.bson的对象“mongo.bson”作为自己的类,包含外部管理的实际数据的指针。该指针被存储在“mongo.bson”属性的对象。
用法----------Usage----------
mongo.bson.empty()
值----------Value----------
An empty mongo.bson object
一个空的mongo.bson对象
参见----------See Also----------
mongo.bson
mongo.bson
实例----------Examples----------
# Use an empty mongo.bson for the query object which matches everything.[使用一个空mongo.bson,查询对象相匹配的一切。]
# This happens to be the default value for the query[这正好是默认值的查询]
# parameter to mongo.count, but we explicity use mongo.bson.empty()[参数来mongo.count,但我们明确地使用mongo.bson.empty的()]
# here for an example.[这里的一个例子。]
mongo <- mongo.create()
if (mongo.is.connected(mongo))
print(mongo.count(mongo, "test.people", query=mongo.bson.empty()))