mongocDatabasecreate_or_get_collection本页总览create_or_get_collection 创建或获取一个指定名称的集合对象 声明 object create_or_get_collection(string coll_name) 参数 参数名描述coll_name集合名称 返回值 集合对象(pkg.mongoc.Collection实例) 使用方式 返回文档