Skip to main content

Table Operations

Right-click tables in the sidebar to drop, truncate, or duplicate them. Create and manage views. Switch between databases on the same connection.

Drop Table

Permanently deletes a table and all its data.
  1. Right-click the table (or select multiple tables)
  2. Select Delete
  3. Configure options in the confirmation dialog
  4. Click OK to execute
Drop table dialog
Dropping a table is irreversible. Always backup important data before dropping tables.

Truncate Table

Removes all rows while keeping the table structure.
  1. Right-click the table (or select multiple tables)
  2. Select Truncate
  3. Configure options in the confirmation dialog
  4. Click OK to execute
Truncate is faster than DELETE FROM table because it skips per-row delete logs. It also resets auto-increment counters.
Truncate table confirmation with options

Batch Operations

Hold Cmd and click to select multiple tables, then right-click and choose Delete or Truncate. The same options apply to all selected tables.

View Management

Views appear in the sidebar with an eye icon and purple color.

Create View

  1. Right-click in the sidebar > Create New View… (or File > New View…)
  2. A SQL editor tab opens with a CREATE VIEW template adapted to your database type
  3. Modify the view name and SELECT query
  4. Execute to create
Create View with SQL template

Edit View Definition

Modify an existing view’s SQL definition:
  1. Right-click the view in the sidebar
  2. Select Edit View Definition
  3. The current view definition opens in a new SQL editor tab
  4. Modify the query and execute to update the view
For MySQL/MariaDB, use ALTER VIEW to modify a view. For PostgreSQL, use CREATE OR REPLACE VIEW. SQLite does not support ALTER VIEW. Drop and recreate the view instead.

Drop View

Right-click the view > Drop View > confirm. Dropping a view only removes the definition; underlying table data stays intact.

Context Menu Differences

ActionTablesViews
Show StructureYesYes
ExportYesYes
ImportYesNo
TruncateYesNo
Edit DefinitionNoYes
Delete / DropYesYes
View-specific context menu options

Database Operations

Create a new database (MySQL/MariaDB): click the database name in the toolbar or press Cmd+K, click Create, enter a name, character set, and collation.
Create Database

Database Switcher

Click the database name in the toolbar to browse databases on the current connection. Search by name, view recent databases, or double-click to switch.
Database switcher with search and recent databases

MongoDB Collections

Create Collection

Use the MQL editor. For collections with specific options (capped, validator):
db.createCollection("myCollection", {
  capped: true,
  size: 1048576,
  max: 1000
})

Drop Collection

Right-click a collection in the sidebar and select Drop Table. This executes db.collection.drop() and removes all documents and indexes.

Show All Collections

Select Show All Tables from the sidebar to list all collections in the current database.
Truncate is not available for MongoDB. To remove all documents while keeping the collection, use db.collection.deleteMany({}) in the MQL editor.