Skip to main content
For more information on destinations, see the Destinations page. When new data is read from a SaaS instance via a Read Action or Subscribe Action, Ampersand inserts the payload as rows into your ClickHouse table.

Prerequisites

Before setting up a ClickHouse destination, ensure that you have:
  • A ClickHouse instance reachable over HTTPS (ClickHouse Cloud or self-hosted)
  • A table to insert into (see Data format and table setup)
  • A username and password with INSERT privileges on that table

Data format and table setup

Ampersand delivers each read or subscribe message as a JSON object. The full payload schema is defined in webhook.yaml. ClickHouse matches the payload’s top-level keys to your table’s columns by name. Create a column for each top-level key you want to store. Keys with no matching column are ignored. result is the array of synced records; store it as a JSON string.

Create a ClickHouse destination

Go to the Destinations page in the Ampersand Dashboard and create a new ClickHouse destination. You’ll need to provide:

Refer to the destination in your integration

After creating your ClickHouse destination, reference it in your amp.yaml file: