SurrealDB
SurrealDB Docs Logo

Enter a search query

Navigation
Table of Contents

Importing CSV data to SurrealDB

This page details some methods to import CSV data to SurrealDB.

Using Surrealist

CSV data is the easiest external data type to import to SurrealDB, as it can be imported directly via the Surrealist UI.

Importing the data is done by going to the Explorer tab, clicking on Import database below, and following the prompts. For more details, see this page in the Surrealist documentation.

Importing CSV data using Surreal Sync

The Surreal Sync tool can be used to import CSV files in the local filesystem or S3 buckets into a SurrealDB table with automatic type detection and optional record ID generation.

For more on how this is done, please see the CSV Import for Surreal Sync page in its repo.