Couchbase Node.js SDK 4.5
const queryResult = await cluster.query(
"SELECT * FROM `travel-sample`.inventory.hotel WHERE city=$1 LIMIT 10",
{ parameters: ['Paris']}
);
queryResult.rows.forEach((row)=>{
console.log(row);
});
The Node.js SDK allows you to connect to a Couchbase Server cluster from Node.js. The Node.js SDK is a native Node.js module that uses the very fast Couchbase++ library to handle communicating with the cluster over the Couchbase binary protocol.
Using Your Database
How-to guides and tutorials to help you start your development journey with Couchbase and the Node.js SDK.
Learn
Take a deep-dive into the SDK concept material and learn more about Couchbase.
Resources
Useful resources to help support your development experience with Couchbase and the Node.js SDK.
This page covers using our operational Node.js SDK to connect to the Analytics Service of a Capella Operational or self-managed Couchbase Server cluster. As well as this row-based analytics service, a speedy, column-based analytics database is available for real-time analytics.
Analytics SDKs
SDKs for Enterprise Analytics — Couchbase’s analytical database for real time apps and operational intelligence (RT-OLAP) — are available for the Go, Java, Node.js, and Python platforms. See the Enterprise Analytics SDK pages for more information. Currently, different SDKs are needed to connect to Capella Analytics — as this service does not have Enterprise Analytics' load balancer, and uses a different connection protocol. Capella Analytics SDKs (also known as Columnar SDKs) are available for the Go, Java, Node.js, and Python platforms. See the Capella Analytics SDK pages for more information. |