Couchbase

Run N1QL queries and upsert documents in Couchbase. In Appbricx, your workflows and server functions call it by name once it is connected.

What you can do

5 actions, each one call from a workflow or a server function. Triggers come from your app: a row changing, a schedule or a webhook.

  • Upsert Documentupsert_document
    Create or update a document. Creates if it doesn't exist, updates if it does.
  • Delete Documentdelete_document
    Remove a document by its ID
  • Get Documentget_document
    Retrieve a document by its ID
  • Insert Documentinsert_document
    Create a new document. Fails if document already exists.
  • Execute SQL++ Queryquery
    Run a SQL++ (N1QL) query with optional vector search filters

Set it up

About two minutes, once per project or once for the whole workspace.

  1. Open Integrations in the builder

    Backend panel, Integrations tab, then Couchbase. To connect it for every project, use Workspace settings, Integrations.

  2. Add your credentials

    Fill in the fields the provider needs (listed below). They are stored encrypted in the vault.

    • Connection String Couchbase connection string (e.g. couchbase://localhost)
    • Username Cluster username
    • Password Cluster password
    • Bucket Name Default bucket to operate on
  3. Call an action

    From a workflow, by integration id and action name. The call answers with success, output and, when it fails, the reason.

    Workflow
    // .workflow.js (native ctx)
    export async function run(ctx) {
      const res = await ctx.integrations.invoke("couchbase", "upsert_document", {
        "bucket": "<bucket>",
        "document": {}
      });
      if (!res.success) throw new Error(res.error);
      ctx.log.info("Couchbase answered", { output: res.output });
    }

Couchbase and its logo are trademarks of their owner, shown only to identify the service this integration connects to. Their use does not imply endorsement by, or affiliation with, that company.

Connect Couchbase once. Every workflow can use it.