跳到主要内容

client_get_or_create_collection

创建一个集合对象

声明

object client_get_or_create_collection(string db_name, string coll_name)

参数

参数名描述
db_name数据库名
coll_name集合名

返回值

pkg.mongoc.Collection实例

使用方式

返回文档