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

1 Answer

« Back to question.

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.