Fivetran
This guide will help you connect SurrealDB to Fivetran. The Fivetran integration is available through their partner-built program. For support with self-hosted SurrealDB destinations, please contact SurrealDB Support. For SurrealDB Cloud related questions, reach out to SurrealDB Cloud Support.
Prerequisites
To connect SurrealDB to Fivetran, you need the following:
A Fivetran role with the Create Destinations or Manage Destinations permissions.
A SurrealDB token.
A SurrealDB instance (self-hosted or Cloud) that is accessible by Fivetran.
Setup instructions
Follow these steps to set up SurrealDB as a destination in Fivetran. You have two options: self-hosted SurrealDB or SurrealDB Cloud .
Before proceeding with either option, ensure you have:
Access to your SurrealDB instance with appropriate permissions
The necessary connection details (endpoint URL, credentials)
Network connectivity between Fivetran and your SurrealDB instance
Option 1: Self-hosted SurrealDB
For self-hosted SurrealDB, ensure your SurrealDB instance is accessible by Fivetran according to your Fivetran deployment:
For Fivetran SaaS Deployment, ensure your SurrealDB is accessible via Internet.
For Fivetran Hybrid Deployment, ensure your SurrealDB is accessible by the Fivetran Hybrid Deployment Agent.
For Fivetran Self-Hosted Deployment, ensure your SurrealDB is accessible by the Fivetran HVR Agent.
Set up the token and use it following SurrealDB's Authentication documentation.
Option 2: SurrealDB Cloud
Ensure your SurrealDB instance is up and running and accessible via Internet.
Browse the Instances page and select your chosen instance.
Click Connect with Surreal CLI and locate the
surreal sql --endpoint wss://YOUR_INSTANCE_HOSTNAME --token YOUR_TOKENcommand.Ensure the user/pass is working by running:
Make a note of the
endpoint,user, andpassparameters. You will need them to configure Fivetran.(Optional) If you prefer using
token, we recommendDEFINE ACCESS ... TYPE JWT. Refer to theDEFINE ACCESS > JWTdocumentation to set up JWT access.Verify if the token is working before proceeding to the next section, by running:
Finish Fivetran configuration
Log in to your Fivetran account.
Go to the Destinations page and click Add destination.
Enter a Destination name of your choice.
Click Add.
Select SurrealDB as the destination type.
Enter the
url,userandpass(ortoken) you verified in the previous step.
Note
Click Save & Test.
Fivetran tests and validates the SurrealDB connection. Upon successfully completing the setup tests, you can sync your data using Fivetran connectors to the SurrealDB destination.
In addition, Fivetran automatically configures a Fivetran Platform Connector to transfer the connector logs and account metadata to a schema in this destination. The Fivetran Platform Connector enables you to monitor your connectors, track your usage, and audit changes. The connector sends all these details at the destination level.
Important
Setup tests
Fivetran performs the following SurrealDB connection tests:
The Database Connection test checks if we can connect to your SurrealDB database using the provided URL and token.
The test should complete in a few seconds if your Fivetran deployment can access the target SurrealDB instance.