Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Indexing Support? #36

Open
FFX01 opened this issue Jul 11, 2017 · 2 comments
Open

[Question] Indexing Support? #36

FFX01 opened this issue Jul 11, 2017 · 2 comments

Comments

@FFX01
Copy link

FFX01 commented Jul 11, 2017

Hi!

I'm fairly new to MongoDb and Nim. I have extensive experience working with Python and JavaScript. I'm experimenting with Nim's web application capabilities and will be using your library to build a micro-framework (well, try to at least).

However, one of the most important features of MongoDb is it's indexing capabilities. Unfortunately, it doesn't seem like Nimongo supports creating indexes natively. Of course one could always use the mongo shell to create indexes, but I am a huge fan of declarative programming and think it would be nice to be able to work with Mongo indexes natively in Nim. A good example of what I mean is how indexing is handled in pymongo and MongoEngine.

MongoEngine, of course, relies heavily on Python's dynamic nature and tries to act more like Django's ORM than anything else. However, I believe it is a good example of how an indexing API can be implemented.

So, what I'm wondering is where I should start if I wanted to contribute indexing functionality to Nimongo.

@SSPkrolik
Copy link
Owner

Hi, @FFX01, I'll try to find some time next week to implement basic indexing queries. Anyway contribution is welcomed, Mongo's query protocol is not that hard :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants