Code Monkey home page Code Monkey logo

Comments (6)

davidlatwe avatar davidlatwe commented on May 22, 2024 2

Had a quick test and I found we need with_options and create_index implemented in Collection class at least.

from montydb.

davidlatwe avatar davidlatwe commented on May 22, 2024

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.

dodolboks avatar dodolboks commented on May 22, 2024

hi @davidlatwe @yamsu any update on this issue ? thanks

from montydb.

davidlatwe avatar davidlatwe commented on May 22, 2024

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.

davidlatwe avatar davidlatwe commented on May 22, 2024

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.

davidlatwe avatar davidlatwe commented on May 22, 2024

New version released, closing this. Thanks and sorry for the long wait on this one.

from montydb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.