Comments (4)
Hi! This feature has not been implemented yet. However, if MongoDB implements it, I will add it to the roadmap. As I am currently working on implementing create_index, this will be considered a lower priority.
If you are interested, pull requests are also welcome.
from polodb.
Thanks for your interests! Implementing this is not a simple task, but I can provide you with some ideas.
- Recognize
$regex
semantics inpolodb_core/vm/subprogram.rs
. You can try to understand the testprint_complex_print
. - Add an op to represents the regex tester in
polodb_core/vm/op.rs
- Modify subprogram to compile your
regex
tester op. - Implement the new OP in
polodb_core/vm/vm.rs
- Add unit tests
Don't know if it would be too difficult for you. You can give it a try~
from polodb.
@vincentdchan Hey! I started working on this feature on my free time ^^. But I'm quite lost with the codebase (firsttime with a big rust codebase ^^"). Do you know how I could debug the behavior of the evaluation on the $regex
or any other query like evaluation ?
At first glance, it seems that the bson::bson::Regex
is translated to plain text and not interpreted/evaluated for this case.
Thanks !
from polodb.
Thanks the tips! I'll give it a try 😄.
from polodb.
Related Issues (20)
- New Python binding HOT 2
- Feat: aggregation
- Feat: IndexedDB backend
- Doc: help adding content to "Advanced condition" section HOT 2
- Feat: iOS support
- Feat: Android support
- Any plan to support Node.js? HOT 2
- No Database::open_file in wasm HOT 2
- Deletions not persisting to disk HOT 5
- Add `update_or_insert` operation
- [Suggestion]: Index Implementation HOT 11
- [Suggestion]: Encryption HOT 1
- [Suggestion]: Async Database HOT 5
- In-database versioning HOT 1
- py使用update更新报错
- Good first issue: upgrade `clap` in the package
- query by prefix HOT 2
- Query on Nested Document HOT 3
- find_many_with_session crash. 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 polodb.