This guide helps you configure SurrealDB as a destination in Airbyte using the official connector.
To connect SurrealDB to Airbyte, you need the following:
v2.2.0
or later.DEFINE TABLE
, DEFINE INDEX
, UPSERT
, SELECT
, and REMOVE
permissions.Follow these steps to configure SurrealDB as a destination. You can use either a self-hosted instance or Surreal Cloud.
Before proceeding, ensure you have the endpoint URL and credentials for your SurrealDB instance and that Airbyte can reach it over the network.
DEFINE USER airbyte ON ROOT PASSWORD "YourPassword" ROLES OWNER;
Use the generated credentials when setting up the destination.
--endpoint
and authentication details.surreal sql
with those parameters.Upon a successful test, you can start syncing data from your sources into SurrealDB tables. Each stream will be output into its own table in SurrealDB. Each table will contain 3 columns:
_airbyte_raw_id
: a uuid assigned by Airbyte to each event that is processed. The column type in SurrealDB is string. The connector use this as the ID of each record in the destination SurrealDB table._airbyte_extracted_at
: a timestamp representing when the event was pulled from the data source. The column type in SurrealDB is datetime._airbyte_data
: a json blob representing with the event data. The column type in SurrealDB is object.SurrealDB destination forces all identifier (table, schema and columns) names to be lowercase.