DB Explorer
Create or Edit Tables
Use the table designer to create tables or change their structure while reviewing the exact SQL before it runs. The designer is available for PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, SQLite, libSQL, writable DuckDB databases, and writable DuckLake catalogs stored in a DuckDB file, SQLite, or PostgreSQL. Read-only DuckDB databases, MotherDuck, Iceberg, DuckLake catalogs stored in MySQL or served over quack, and file connections change table structure through SQL only. Other databases open the classic table editor with the same commands.
Open the Designer
Section titled “Open the Designer”- Create a table: in Connections, right-click Tables and select Create.
- Edit a table: right-click the table and select Alter, or use DBCode: Alter Table from the command palette while a table’s data is open.

The Layout
Section titled “The Layout”The designer shows the table as sections - Columns, Primary Key, Indexes, Foreign Keys, Unique Constraints, Check Constraints, and table properties - listed on the left. Edits are staged: every change marks its row with a change bar and shows the previous value beneath the new one, and nothing touches the database until you apply.
On DuckLake, the designer shows the Table and Columns sections. The Table section also sets Partitioned By, how DuckLake splits new data files (by a column’s value, by the year, month, day, or hour of a date or timestamp, or into hash buckets), and Sorted By, the order it writes rows in.

Columns
Section titled “Columns”Each column row covers the fields every engine shares: name, type, length, nullable, default, and comment. Engine-specific attributes - auto increment, unsigned, enum values, identity, sparse, masking, and the like - fold into one Attributes cell: a chip appears for each attribute that is set, and clicking the cell opens an editor offering exactly the attributes the column’s current type supports.
On DuckDB, Auto Increment numbers each new row from a sequence named after the table and column, such as orders_id_seq.

Keys and Indexes
Section titled “Keys and Indexes”Key and index columns are chips that drag to reorder - column order matters for composite keys. Add a column with the +, which lists the columns not yet included.
On DuckDB and PostgreSQL, each index has an editable comment, including expression indexes whose definition is read-only.

Foreign Keys
Section titled “Foreign Keys”A foreign key’s + walks the whole reference in one picker: the source column, then the referenced schema (skipped for databases without schemas), table, and column, each list showing data types. The referenced table appears in each pair as a chip - click it to re-target the key. Anything the picker cannot list, such as a cross-database target, can be typed instead.

Preview and Apply
Section titled “Preview and Apply”The SQL Plan panel at the bottom recompiles automatically as you edit, drawing the plan’s success and failure paths as a branching flow and showing every statement in execution order with syntax highlighting, plus Destructive and Lossy badges where a statement removes objects or can change data. Statements that must wrap other objects around a change - for example, SQL Server recreating an index around an ALTER COLUMN - are planned for you.

- Apply changes runs the plan, and a running apply can be cancelled. On databases with transactional DDL it runs atomically; on MySQL and MariaDB each statement is applied in order.
- On SQLite, libSQL, and DuckDB, some changes cannot be made with
ALTER TABLEand instead apply as a safe whole-table rebuild, with the data copy shown as its own step in the plan. - Copy SQL and Open in Editor take the plan as a script instead, if you would rather run it yourself or save it as a migration.
After applying, the same panel shows the result per statement, and the designer re-reads the table so what you see always matches the database. If the table changes underneath an open designer - another session, another tool - the apply is refused rather than run against a stale plan.
Good to Know
Section titled “Good to Know”- A row or field the designer cannot faithfully reproduce (an exotic index type, a disabled constraint, an unreadable masked column) is shown read-only rather than silently rewritten.
- Creating tables and the column, primary key, and table-property edits are free; indexes, foreign keys, unique and check constraints are Pro sections.