Follow our setup guide to connect SurrealDB to Fivetran.
To connect SurrealDB to Fivetran, you need the following:
Follow these steps to set up SurrealDB as a destination in Fivetran. You have two options: self-hosted SurrealDB or Surreal Cloud.
Before proceeding with either option, ensure you have:
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_TOKEN command.
Run the command, and set up your own ACCESS or USER. The example below works for testing purposes:
USE NS your_ns; USE DB your_db; DEFINE USER your_user ON DATABASE PASSWORD "YourPassword" ROLES OWNER;
Ensure the user/pass is working by running:
surreal sql --endpoint wss://YOUR_INSTANCE_HOSTNAME --user your_user --pass YourPassword --ns your_ns --db your_db
Make a note of the endpoint, user, and pass parameters. You will need them to configure Fivetran.
(Optional) If you prefer using token, we recommend DEFINE ACCESS … TYPE JWT. Refer to the DEFINE ACCESS > JWT documentation to set up JWT access.
surreal sql --endpoint wss://YOUR_INSTANCE_HOSTNAME --token your_token --ns your_ns --db your_db
url
, user
and pass (or token)
you verified in the previous step.NoteThe
url
setting corresponds to theendpoint
parameter you verified in the previous step.
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.
ImportantIf you are an Account Administrator, you can manually add the Fivetran Platform Connector on an account level so that it syncs all the metadata and logs for all the destinations in your account to a single destination. If an account-level Fivetran Platform Connector is already configured in a destination in your Fivetran account, then we don’t add destination-level Fivetran Platform Connectors to the new destinations you create.
Fivetran performs the following SurrealDB connection tests:
The test should complete in a few seconds if your Fivetran deployment can access the target SurrealDB instance.