CouchbaseMock icon indicating copy to clipboard operation
CouchbaseMock copied to clipboard

Feature Request: N1QL Support

Open jimhooker2002 opened this issue 7 years ago • 12 comments

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?

jimhooker2002 avatar Mar 27 '17 07:03 jimhooker2002

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.

mnunberg avatar Mar 27 '17 14:03 mnunberg

+1 for this!

unhuman avatar Jul 11 '17 12:07 unhuman

+1

tomrogers3 avatar Apr 09 '18 19:04 tomrogers3

We do looking fwd to have this feature, do let us know once you have things ready

santoshm1188 avatar May 09 '18 20:05 santoshm1188

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!

skycremaschinin avatar May 14 '18 08:05 skycremaschinin

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 .

unhuman avatar May 14 '18 13:05 unhuman

+1

jurgob avatar Jun 11 '18 16:06 jurgob

+1

himani1 avatar Jul 24 '18 07:07 himani1

+1

ZeeD avatar Jul 31 '18 12:07 ZeeD

+1

yinan-liu avatar Aug 14 '18 12:08 yinan-liu

+1

EdgarLGB avatar Mar 22 '19 16:03 EdgarLGB

+1 Any update from the Authors will be helpful If at all they are planning to build it.

parag90 avatar Oct 01 '20 05:10 parag90