Bulk importing and exporting data to and from databases
Bulk importing columnar data into a database
You can easily import columnar data into a database using the "Import from CSV" tool. This tool allows you to add new rows and/or update existing rows using a Comma-Separated Values (CSV) file. Follow these instructions to import data into a database.
- Prepare your data for importing
- Download a template
- Navigate to the data grid for the database that you'd like to import into.
- Click the actions (…) button at the top-right of the data grid and select the "Import from CSV" option.
- In the popup window that opens, click the link in the instructions to download a template CSV file.
- Enter your data into the template: Fill the template with data, maintaining the column headings.
- Creating new rows: Use this paradigm to bulk import new data.
- Leave the ID column blank in the CSV file.
- Once uploaded, a new database row will be created for each CSV row.
- Updating existing rows: Use this paradigm to bulk update data.
- The CSV file must include an ID column.
- Once uploaded, each CSV row will be used to update the values of the database row with the same ID.
- Creating new rows: Use this paradigm to bulk import new data.
- Download a template
- Import your data
- Navigate to the data grid for the database that you'd like to import into.
- Click the actions (…) button at the top-right of the data grid and select the "Import from CSV" option.
- In the popup window that opens, drag and drop your CSV file or open your file explorer and select your CSV file.
- Click the "Import from CSV" button.
Importing references
Reference columns enable you to capture relationships among your rows. Follow these instructions to prepare reference columns for importing.
- Columns that are limited to a single reference: Enter the ID of the related row, such as
row-1
. - Columns that can capture multiple reference: Enter a comma-separated list of the IDs of the related rows, such as
row-1,row-2
.
Bulk exporting columnar data from a database
Currently, the values of reference columns are exported as their system IDs. We plan to export the values of reference columns using the human-readable IDs users experience in our platform. For immediate assistance, contact support.
Follow these instructions to export the columnar data of a database to a CSV file.
- Select the database: Navigate to the data grid for the database that you'd like to export.
- Export the database: Click the actions (…) button at the top-right of the data grid and select the "Export to CSV" option. A CSV file will be downloaded to your local machine.
Bulk importing and exporting notebooks and files
Please contact support for assistance bulk importing and exporting notebooks and files.