标签:pre mongo mongod let one man color and style
pymongo操作 MongoDB的一些方法:
.数据库.表.delete_one( )
.数据库.表.insert_one( ) 新增一条 字典类
.数据库.表.insert_many( ) 新增多条 字典类
.数据库.表.replace_one( )
.数据库.表.update_one( )
.数据库.表.find_one_and_delete( )
.数据库.表.find_one_and_replace( )
.数据库.表.find_one_and_update( )
- :meth:`~pymongo.collection.Collection.bulk_write`, as long as :class:`~pymongo.operations.UpdateMany` or :class:`~pymongo.operations.DeleteMany` are not included. - :meth:`~pymongo.collection.Collection.delete_one` - :meth:`~pymongo.collection.Collection.insert_one` - :meth:`~pymongo.collection.Collection.insert_many` - :meth:`~pymongo.collection.Collection.replace_one` - :meth:`~pymongo.collection.Collection.update_one` - :meth:`~pymongo.collection.Collection.find_one_and_delete` - :meth:`~pymongo.collection.Collection.find_one_and_replace` - :meth:`~pymongo.collection.Collection.find_one_and_update`
标签:pre mongo mongod let one man color and style
原文地址:https://www.cnblogs.com/sdosun/p/13380160.html