docs/docs/marketplace/plugins/couchbase.md
ToolJet integrates with Couchbase to utilize its NoSQL database capabilities and advanced vector search features. This integration enables ToolJet to perform document operations such as creating, reading, updating, and deleting documents, as well as executing SQL++ queries, Full-Text Search (FTS) operations in Couchbase databases. With Couchbase's vector store capabilities, ToolJet can leverage semantic search, hybrid search combining traditional and AI-powered queries, and build intelligent applications.
:::note Before following this guide, it is assumed that you have already completed the process of Using Marketplace plugins. :::
For connecting to Couchbase, the following credentials are required:
This operation retrieves a specific document by its ID from a Couchbase collection.
{
"id": "user::123",
"name": "John Doe",
"email": "[email protected]",
"age": 30,
"created_at": "2023-01-15T10:30:00Z"
}
This operation creates a new document in a Couchbase collection.
Created successfully
This operation updates an existing document in a Couchbase collection.
Updated successfully
Note: Update operation replaces the original document with the updated value of the document passed.
This operation deletes a document from a Couchbase collection.
Deleted successfully
This operation executes SQL++ queries against your Couchbase database.
$parameter placeholders for named parameters)$parameter placeholders in the queryreadonly, timeout, etc.SELECT * FROM `travel-sample`.`inventory`.`airline` WHERE country = $country LIMIT 10
Arguments (Key-Value): { "$country": "France" }
Query Options: { "readonly": true, "query_context": "travel-sample.inventory" }
Refer to the request paramters for supported query options.
</details> <details id="tj-dropdown"> <summary>**Example Response**</summary>{
"results": [
{
"airline": {
"id": 137,
"type": "airline",
"name": "Air France",
"iata": "AF",
"icao": "AFR",
"callsign": "AIRFRANS",
"country": "France"
}
}
],
"status": "success",
"metrics": {
"elapsedTime": "15.2ms",
"executionTime": "14.8ms",
"resultCount": 1,
"resultSize": 234
}
}
This operation performs Full-Text Search queries against a Couchbase FTS index.
{
"query": {
"match": "hotel",
"field": "name"
}
}
{
"status": {
"total": 1,
"failed": 0,
"successful": 1
},
"request": {
"query": {
"match": "hotel",
"field": "name"
}
},
"hits": [
{
"index": "hotel-index",
"id": "hotel_123",
"score": 0.8567,
"fields": {
"name": "Grand Hotel",
"city": "Paris",
"country": "France"
}
}
],
"total_hits": 1,
"max_score": 0.8567,
"took": 12
}