txmongo
txmongo copied to clipboard
asynchronous python driver for mongo
I have the following code: next_job = yield self.scrapers_coll.find_one_and_update( {"state": "enqueued"}, { "$set": { "startTime": time.time(), } }, sort=[("createdOn", pymongo.ASCENDING)] ) This gives me a `TypeError: list indices must be...
Is it possible to specify a collation on a `find` / `find_one` query: ( [Ref](https://docs.mongodb.com/manual/reference/method/cursor.collation/) & [PyMongo](http://api.mongodb.com/python/current/examples/collations.html) ) with txmongo ? That can be used along with a [Case Insensitive...
txmongo should, like pymongo, fully support read preferences, to permit, for example, failover to primary, or nearest. Behavior, should be like pymongo 3.2.2 as described here: https://api.mongodb.org/python/current/api/pymongo/read_preferences.html#module-pymongo.read_preferences. PRIMARY: Read from...
Unfortunately, many of our examples are of bad quality. - Some examples simply not working due to errors in the example code - Some are confusingly overengineered - Some treat...
Started to write some connection examples. More to be added. see #216
txmongo dosen't return list of all collections.Inserts and deletes works just fine.Below is the code that is being used. ``` from txmongo.connection import ConnectionPool from twisted.internet import defer, reactor import...
PyMongo raises `DocumentTooLarge` in all situations when document that is larger than `max_bson_size` is sent to DB. TxMongo fails with two different invalid errors: 1. when `insert()` is called with...
Hi there, I was trying to use `txmongo.collection.Collection#rename()` with a user without admin permissions. This can be done in Mongo just fine without admin permissions, as you can do `db.collection.renameCollection()`...
https://docs.mongodb.com/v3.2/reference/read-concern/ http://api.mongodb.com/python/current/api/pymongo/read_concern.html
https://www.quantifiedcode.com/app/project/9f65cb1b729e4f7eaad1fa4048169009 I plan on working my way through this, normally this should not impact end-users. Not all 'issues' found can be fixed, looking for a way to mark them as...