N1QL java sdk api


#1

Hello All,

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

Thanks,
Erwin


#2

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


#3

When do you think this might be available?


#4

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


#5

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


#6

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.