CouchbaseMock
CouchbaseMock copied to clipboard
Feature Request: N1QL Support
I'm thinking about the following:
1: We can take a bit of inspiration from the design/structure/tooling of https://github.com/JSQLParser/JSqlParser to give us a "base" for this feature.
2: We can lift/reuse (and then tweak) the .ebnf/.y/.nex files from here: https://github.com/couchbase/query/ to give us the grammar we need.
Our mock implementation of the planner/executor would obviously be a very stripped down and simplified version.
In summary - lift the grammar from couchbase/query, then build much simplified versions of the planner/executor etc.
Thoughts? Any other ideas around how we can get a N1QL support in the mock?
I think any solution which leaves us with at least a clean subset of N1QL should be good.
There's of course the challenge in properly managing data access.. executing "plans" and so on. I've mocked out some of the idea of plans though.
+1 for this!
+1
We do looking fwd to have this feature, do let us know once you have things ready
hi everybody, i'm writing an application using couchbase and spring-data and i just know that i can't use this mock to test my app, spring data repositories uses n1ql and mock doesn't support it. +100000000 for this!
You could try testcontainers.org with couchbase. Not perfect, but works.
On Mon, May 14, 2018 at 4:32 AM, Nicola Cremaschini < [email protected]> wrote:
hi everybody, i'm writing an application using couchbase and spring-data and i just know that i can't use this mock to test my app, spring data repositories uses n1ql and mock doesn't support it. +100000000 for this!
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/couchbase/CouchbaseMock/issues/22#issuecomment-388738631, or mute the thread https://github.com/notifications/unsubscribe-auth/AApIlmpHoLtKGwMr3pd5iCp1U4-ViAYfks5tyUEvgaJpZM4Mp383 .
+1
+1
+1
+1
+1
+1 Any update from the Authors will be helpful If at all they are planning to build it.