The Couchbase C client, libcouchbase (LCB), enables you to interact with a Couchbase Server cluster from the C language. It is also used by the Node.js, PHP, and Python SDKs to communicate with the Couchbase Server.
const char *connection_string = "couchbase://192.168.56.101,192.168.56.102";
lcb_CREATEOPTS *options = NULL;
lcb_createopts_create(&options, LCB_TYPE_CLUSTER);
lcb_createopts_connstr(options, connection_string, strlen(connection_string));
Couchbase C SDK 3.3
Dive right in with a quick install and Hello World.
Connect to our services — data (KV); Query — and the Sub-Document API.
And follow the Concurrent Document Mutations howto guide.
The documentation supplements the practical Howto docs with references and concept guides, for those who prefer a broader understanding before diving in and coding.
Leverage the new Couchbase Server Scopes and Collection features to build multi-tenant micro-service application.
Those useful nuts-and-bolts guides to compatibility tables; release notes; contribution guide.
For community help, visit the Couchbase forums.
Documentation on older, unsupported versions of the SDK — that have reached end-of-life — can be found in the archive.
|
Operational Insights SDKs
SDKs for Operational Insights Enterprise — Couchbase’s analytical database for real time apps and operational intelligence (RT-OLAP) — are available for the .NET, Go, Java, Node.js, and Python platforms. See the Operational Insights Enterprise SDK pages for more information. Currently, different SDKs are needed to connect to Operational Insights Capella — as this service does not have Operational Insights Enterprise’s load balancer, and uses a different connection protocol. Operational Insights Capella SDKs (also known as Columnar SDKs) are available for the Go, Java, Node.js, and Python platforms. See the Operational Insights Capella (Columnar) SDK pages for more information. |