Connect an external database
Connect your own PostgreSQL or Supabase database and manage its tables with the same grid you use for datasets.
Some data has to live in your own database: it feeds another system, it's too large to move, or company policy says so. Databases lets Rework work with tables stored in a PostgreSQL or Supabase database you control. The tables look and behave like datasets, with the same grid, record view and filters, while every row stays stored in your database.
Two things are involved:
| Object | What it holds | Who creates it |
|---|---|---|
| Connection | The credentials: host, port, database, user, password | App admins |
| Database | A named workspace on top of a connection, with its tables, views and sharing | Anyone allowed, picking an existing connection |
Note: Rework manages the tables it creates in your database. It doesn't browse or edit tables that already existed there, so connecting a production database never exposes its existing data.
Step 1: Start a new database
Click Databases in the left sidebar.
Click New connection.

The New database dialog opens:
Name: how your team will recognize it, for example Northwind ops.
Connection: the connection it runs on. Pick an existing one, or click New connection to create one (App Admin only, see Step 2).
Template: optional. Click Browse templates to create tables and an app from a template at the same time. See Start from a template.

Step 2: Create the connection
Click New connection inside the dialog and fill in the connection form:
Name: a name for the credentials, for example Northwind ops Postgres.
Provider: PostgreSQL or Supabase. MySQL is coming soon.
Connection string: paste a
postgres://URL to fill in the fields below in one go, or type them:Host, Port, Database, User and Password.
Use SSL: keep it on for any database reached over the internet.
Read-only data: turn it on if Rework should only read, never write.
Click Test connection until it reports Connection successful, then click Create connection.

Where do I find these values in Supabase?
In your Supabase project, click Connect, then Session pooler. Use the host aws-0-<region>.pooler.supabase.com, port 5432 (session) or 6543 (transaction), user postgres.<project-ref>, database postgres, and your database password.
Step 3: Create the database
Back in New database, your new connection is already selected. Click Create database.

The database opens on its Overview. It's empty at first, and that's expected:
New table creates a table in your database.
Sync schema refreshes what Rework knows about the tables it manages, which is useful after a change made directly in the database.

Step 4: Create a table
In Create table, enter the Table name. The dialog shows the physical name it will use in your database, for example equipment_loans. Pick an icon and colour, then set up the columns:
A name column is always added.
Give every other row a column name and a type, or remove the row. Create table stays disabled while a column row has no name.
Click Add column for more.
Click Create table. Rework creates the real table in your database.

Step 5: Work with the table
Open the table from the database's left rail. Add record, Filter, Sort, Group and the record view work just as they do in a dataset. See Add and edit records.
External tables offer two extra views on top of Grid view and Kanban:
Calendar: records placed on a month or week by a date field, with an Unscheduled panel for records without a date.
Gantt: records drawn as bars between a start and an end date, by Week, Month, Quarter or Year.
Note: Connections for the whole workspace are listed under Settings > Connections, where admins can test, edit or remove them. See Workspace settings.