Remember that N1Q1 is still in beta.
How it works, you need to run the Couchbase Query Server (aka CBQ). It runs on port 8093 by default (see N1QL ). The query server connects to the specified Couchbase instance / cluster. eg
cbq-engine -couchbase <CB-location>
CB Query Engine , N1QL, :
cbq -engine http:
cbq> SELECT 'Hello World' AS Greeting
{
"resultset": [
{
"Greeting": "Hello World"
}
],
"info": [
{
"caller": "http_response:160",
"code": 100,
"key": "total_rows",
"message": "1"
},
{
"caller": "http_response:162",
"code": 101,
"key": "total_elapsed_time",
"message": "4.0002ms"
}
]
}