SQL Imports
Easily import your data into Decipad using SQL.
Connecting a Database to Decipad
To import data into your Decipad Notebook using SQL, you need to start by connecting Decipad to a Database:
- Go to your workspace.
- Select
Settings and Members
and then click onData Connections
. - Choose the
SQL
tab and clickAdd new connection
. You can pick from mysql, bigquery, oracle, postgresql, mariadb, mssql, redshift and cockroachdb. - Provide either a link or your access credentials to connect your database.
- After configuring, test your connection. If successful, click
Add
to integrate it into your workspace.
Importing Data with SQL in a Notebook
After connecting your database to your Decipad workspace, follow these steps to import data into any notebook:
- Type
/integrations
on an empty paragraph. - Choose
SQL
from the integration options. - Select your database from the connections picker located at the top right.
- Write your SQL query and press
Run
to execute it. - Utilize the preview tab to adjust data types if needed.
- Click
Insert
to add the data into your notebook.
Once your integration is added to your notebook, you can use the refresh button to update the table with the latest data.