Supabase
Connect a Supabase account to open table data as a diagram and draw your database schema.
The Supabase integration reads tables from your Supabase projects. Use it to look at rows as a diagram, or to draw the tables of a schema and the references between them.
You need a ToDiagram account and a Supabase account.
Connect
- In the editor, open the menu at the top left and choose Apps and integrations > Supabase. Sign in to ToDiagram if you are asked to.
- Click Connect to Supabase.
- Approve the access on Supabase's page. You come back to the editor when it is done.
Open Apps and integrations > Supabase again. The dialog now lists your account under Connected Account. Pick it there each time you open the dialog. The red button next to a picked account disconnects it, and the plug button at the bottom of the dialog connects another account.
Open table data
- In the Supabase Integration dialog, choose Table Data.
- Pick a Connected Account, a Project and a Table.
- For a large table, pick a Page. Each page holds 350 rows.
- Optional: turn on Resolve references to include the rows a row points to as nested objects. Only references to tables in the
publicschema are included. - Click Load Table Data.
The rows open in the current tab as JSON, named after the table. From there you can use everything a JSON document offers, such as the table view and charts and search.
Loading replaces the content of the current tab. Open a new tab first if you want to keep what is in it.
Draw a schema
- In the dialog, choose Schema ERD.
- Pick a Connected Account, a Project and the Tables to include.
- Click Generate Schema Diagram.
The result opens in the current tab as a ToDiagram document: one node per table with its columns, and an edge for each reference between tables. You can rearrange and edit it like any other diagram.
Good to know
- Loaded data is a copy. Changing it in the editor does not change your database.
- The data is not saved to ToDiagram unless you save the document.