MongoDB Driver for Lua
Minor bugfixes and improvements
Absorb changes introduced in mongo-c-driver 1.16
mongo.BSON()
: autodetect between BSON/JSON data
New API for consistency with Mongo C Driver's API:
collection:insertMany(document1, document2, ...)
collection:insertOne(document, [options])
collection:removeMany(query, [options])
collection:removeOne(query, [options])
collection:replaceOne(query, document, [options])
collection:updateMany(query, document, [options])
collection:updateOne(query, document, [options])
Minor fixes, tests & docs
Absorbed changes introduced in mongo-c-driver 1.13.0 Better type errors/checks Minor fixes
Support for read preferences
Fix: query
is mandatory in collection:count()
and collection:remove()
Removed/renamed due to deprecation in mongo-c-driver 1.11:
cursor:isAlive()
-> cursor:more()
collection:stats()
collection:validate()
API updated to libmongoc 1.9.0
Minor fixes
First official release
API updated to libmongoc 1.7.0