N1QL java sdk api

Hello All,

Is it possible to use N1QL from Couchbase JAVA sdk?
Your directions would appreciated.

Thanks,
Erwin

Hi,

currently there is no published package that you can download and is supported. We are workling actively on N1QL integration into the Java SDK.

If you want to get started, there are some ways to do that:

  • I have a custom package that you can use as a wrapper around the CouchbaseClient: https://github.com/daschl/couchbase-java-query … you can package and use it on your own.

  • Use a custom http client to connect to the n1ql engine directly.

You may want to check out my query library, although its very “bare bone” as of now, because it allows you to send a query string and get the result as a map… But maybe thats enough start for you! Please report any issues you find and what you want to see. Note that I’m working on a full blown ODM as well.

Cheers,
Michael

When do you think this might be available?

That package you mentioned had many errors. and there is no explanation for dependent library files. Its not working

That package you mentioned had many errors. and there is no explanation for dependent library files. Its not working

Note that the functionality there is now included in the Couchbase Java SDK 2.0. As of this writing querying N1QL is experimental since N1QL itself is not GA yet, but it is easily used.