All notable changes to mongomancy project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- support pymongo 4.10+ for changes of collection imports
- missing attribute fixed for
AttributeError: 'Collection' object has no attribute 'database', now covered by tests
- reduced default
max_waitof database to 55 sec
- perform db unlock on fail
- unittests
- typing and small fixes on reconnect
- separate base requirements and requirements-ev
- you can now supply mongo client class to
Engineconstructor for example themongomockwithmongo_client_cls=mongomock.MongoClient
- ping now work even if connection is broken, and does nto fall into infinite loop
- lock critical sections
Engine.reconnect,Engine.disposeto prevent unexpected connections states - lock
Database.create_allmethod to prevent double init at same
- broken default data insert from last commit
- reset references correctly after dispose
- query repeat on fail - queries are now actually repeated on new collection instance instead of disconnected one
- tracing if engine dispose to prevent closed connection error
- ignore double init on collection
- unlock called bad collection
- introduced lock wait timeout into
Databaseinit
- unlock database after first init
- mongomancy creates
mongomancy_lockcollection to synchronize db init with master lock record - create all now uses multiprocess and thread log
- typing of required fields of index more broad
- Include
py.typedfor python typing support.
- Collection aggregate return type set to pymongo CommandCursor.
- Collection and Engine now support
aggregatemethod.
- Hooks typing now correctly allows any Executor subclass.
- Index fields accepts dict type as valid ordered dict in python 3.7+ because it is guaranteed to keep order.
- tune build process
- First stable version.
- Auto-reconnect to database on remote cluster master switch.
- Begin of changelog.