N1QL Golang

Hello,
It is possible use N1QL with the Golang SDK?

P.D.: out of curiosity, when will release final version?

Thanks

Best,
Emilio

Emilio,

There’s no API in go-couchbase to invoke N1QL at this time. However, N1QL can be invoked via REST API from any HTTP client, including Golang:

Querying via HTTP

HTTP Get

curl 'http://localhost:8093/query?q=URL_ENCODED_QUERY_STRING'

HTTP Post

curl -HContent-Type:text/plain -XPOST http://localhost:8093/query -d 'QUERY_STRING'

We have not yet announced a Beta or GA date, but sometime this year.

This is a very old thread now, but note that there is an official go SDK. See developer.couchbase.com for details!