February 2015
Intermediate to advanced
170 pages
3h 39m
English
At the time of writing this book, SDK support for N1QL is somewhat limited. .NET, Java, PHP, and Node.js have experimental support for N1QL. Ruby and Python should see N1QL support in the future. Until both the N1QL framework and the SDKs are more locked down, it's worth keeping an eye out for changes. At this stage, we'll look briefly at a Java snippet that demonstrates how to use N1QL with the 2.0 SDK:
Observable<QueryResult> result = bucket.query("select * from beer-sample");Notice that the N1QL language is reminiscent of working with SQL-oriented frameworks such as JDBC or ADO.NET.
If you're familiar with prepared statements in SQL, where you provide parameters as positional arguments to a query statement with placeholders, there ...
Read now
Unlock full access