Comments (6)
Had a quick test and I found we need with_options
and create_index
implemented in Collection class at least.
from montydb.
Hi @yamsu , I haven't tried with MongoEngine before, but I think you could try following the setup mentioned here scottrogowski/mongita#4 (comment)
Please let me know if it works or not, I will have a deeper look ASAP.
from montydb.
hi @davidlatwe @yamsu any update on this issue ? thanks
from montydb.
Hey @dodolboks thanks for asking!
I am not sure when I'll be back on this, will try if I can this week.
Oh ands, pull requests are welcome of course, even if just some test cases. :)
from montydb.
Minimum change for mongoengine
support has been added into current master branch, should be released shortly.
To try out at this moment, you have to monkey-patch pymongo.MongoClient
as mentioned above (scottrogowski/mongita#4 (comment)).
But thanks to the work in MongoEngine/mongoengine#2729, once it's been released (probably v0.27.0
), mongoengine
can simply connect montydb
as follow:
import montydb
import mongoengine
mongoengine.connect(db="test_db",
mongo_client_class=montydb.MontyClient,
repository=":memory:")
...
from montydb.
New version released, closing this. Thanks and sorry for the long wait on this one.
from montydb.
Related Issues (20)
- $elemMatch in $elemMatch find nothing HOT 1
- asyncio support HOT 2
- Use Poetry to manage project dependencies HOT 4
- Permission denied with empty collections on LMDB HOT 2
- Tests failed if pymongo==3.12.0 is used HOT 1
- Indexes support HOT 1
- importing MutableMapping breaks on Python 3.10 HOT 1
- Implement MongoDB aggregate
- $slice projection does not return other fields HOT 1
- Updating a document in an array leads to an error
- Multi(tasks
- Working with gridfs ? HOT 1
- MontyClient instanciation fails HOT 3
- How to install montydb with lmdb option? HOT 1
- How to use `montydb` with an existing SQLite database? HOT 2
- ConfigurationError: montydb has been config to use BSON and cannot be changed in current session. HOT 8
- Confusing behavior of set_storage vs. MontyClient with memory
- Support regexes with `$not` HOT 8
- Potential race condition fix? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from montydb.