This page describes Calíope 1.8, the version I am building right now. 1.7 is on the App Store for the Mac, iPad, iPhone, Apple Watch, Apple TV and Apple Vision Pro. The changelog says which version each feature landed in.

Adds an “Open in Calíope” button to every topic. It only works with the app installed.

Schema Tree

Exploring databases

Browse the server structure in the sidebar panel.

Where it is: Sidebar › Schema tree

The schema panel, on the right-hand side of the SQL Editor, displays the schema tree; show or hide it with the sidebar button in the editor toolbar. Click the arrow next to a database to expand it and view its tables. Calíope lists all databases on the server, including the system ones (information_schema, performance_schema, mysql, sys) — Calíope is a DBA-first app and those are legitimate introspection sources. They are the ones the server lets the connection’s account see: if it doesn’t see them all, or doesn’t see everything in an expanded database, a strip with a padlock says so above them and names the missing privilege.

Reloading it. The panel header has no refresh button: reloading lives in the context menu, with Refresh tables on a database and Refresh database list on the whole tree. On iPad you can also pull the tree down to reload everything.

Keywords: databases, tables, schema, sidebar, tree, schema tree, information_schema, performance_schema, mysql, sys

Previewing a table

Opens a quick SELECT for the selected table.

Where it is: Sidebar › Table in tree

Click on a table name in the schema tree. Calíope automatically generates a SELECT * FROM \db\.\table\LIMIT 50 and loads it in the active SQL Editor tab (or opens a new tab if none is active).

Keywords: preview, select, quick select, view table, table data

Searching tables in the schema tree

Filter tables by name in the Workspace sidebar panel.

Where it is: Sidebar › Schema tree › Search

The schema tree panel includes a filter field in its header, and it is the same in every tool that shows the schema. Type part of a name to narrow the list: the filter matches database names and object names at once, and if the database name matches, all of its objects are shown.

The filter waits a moment after your last keystroke before applying, so typing continuously does not reshuffle the list on every key. Clearing it restores the databases you had expanded before filtering.

Each database is queried the first time you expand it, so the filter cannot find what has not been fetched yet. When databases remain unexplored, the footer shows how many and offers a Search all button that loads them in order so the connection is not overwhelmed.

macOS: the field sits at the top of the panel; Escape clears it.
iPad: the field is always visible in the same place, and pulling down reloads the tree.

Keywords: search, filter tables, search tables, tree, filter, sidebar, magnifying glass

The schema tree is the same in every tool

Identical filtering, on-demand loading and context menus across every tool that shows the schema.

Where it is: Sidebar › Schema tree

Calíope draws the same tree of databases and objects in every tool that needs one: the SQL Editor, Backup, Object Migration, Table Maintenance, Global search and the Query Builder. They are not merely similar — it is the same component, so what you learn in one tool applies everywhere.

What you always get

  • Filter by name in the panel header. It matches database names and object names at once; if the database name matches, all of its objects are shown. It waits a moment after your last keystroke before applying, and clearing it restores the databases you had expanded.
  • Unexplored databases notice. Each database is queried the first time you expand it, so a filter cannot find what has not been fetched yet. When that happens, the footer tells you how many databases are missing and offers a Search all button that loads them.
  • Context menu with copy name, copy fully qualified name and reload. Each tool adds its own entries: the SQL Editor, for instance, adds SELECT * FROM, data import and the WHERE builder.

What changes per tool

  • What you can select. In the SQL Editor and the Query Builder you tap an object to use it. Backup, Migration, Maintenance and Global search use checkboxes: the database checkbox selects or clears everything under it, and to its right you see how many objects are selected out of the total. Global search and the Query Builder work inside the one database picked in their header, so their tree lists its objects directly, with no database node.
  • What is shown. Maintenance and Global search list tables only (a REPAIR does not apply to a view, and a view is not replaced), the SQL Editor lists tables and views, and Backup and Migration list all five kinds grouped into sections.
  • When it loads. Backup fetches the whole catalog on open, because it needs the count and the estimated size before you touch anything. The rest load each database as you expand it.

Keywords: tree, schema, filter, search, component, tools, selection, checkboxes

Context menu on databases in the tree

Access quick actions on a database from the schema tree.

Where it is: Schema tree › context menu › Database

Right-click (macOS) or long press (iPad) on a database name in the schema tree to open the context menu with the following options:

  • Set as active database — switches the session context to this database (equivalent to USE db_name).
  • Refresh tables — reloads the table list for this database from the server.
  • Refresh database list — reloads all databases in the tree.
  • Copy name — copies the name to the clipboard.
  • Import a file into a new table… — opens the import assistant to create a table in this database from a CSV, TSV, JSON or Excel file. It does not appear in a read-only session.

iPad: pull down (pull-to-refresh) in the panel to refresh the entire database list.

Oracle

With Oracle each entry in the tree is a schema, and Set as active database runs no USE, which Oracle does not have: the editor resolves unqualified names in that schema, like ALTER SESSION SET CURRENT_SCHEMA.

Keywords: context menu, database, use database, create table, refresh, copy name, USE, pull to refresh

Context menu on tables in the tree

Access quick actions on a table from the schema tree.

Where it is: Schema tree › context menu › Table

Right-click (macOS) or long press (iPad) on a table name in the schema tree to open the context menu with:

  • SELECT * FROM table — generates a query for the first 50 rows, written in the session engine's syntax —LIMIT 50 in MySQL and ClickHouse, TOP (50) in SQL Server—, and loads it in the SQL editor.
  • Refresh tables — reloads the table list for the database containing this table.
  • Copy table name — copies only the table name to the clipboard.
  • Copy full name — copies the full reference to the clipboard, quoted the way the engine expects it: `db`.`table` in MySQL and ClickHouse, [db].[schema].[table] in SQL Server.
  • Import data… — opens the import wizard to load data from a CSV, JSON, or Excel (.xlsx) file directly into this table.
  • Build WHERE… — opens the WHERE Builder to create visual filters for this table without writing SQL.

Keywords: context menu, table, view data, select, copy name, import data, where builder, build where, refresh

WHERE Builder

Build WHERE filters visually without writing SQL.

Where it is: Schema Tree › context menu › Build WHERE…

The WHERE Builder lets you construct filter conditions for a table without writing SQL manually.

How to activate it: in the schema tree, open the context menu on any table — right-click on macOS, press and hold on iPad — and select Build WHERE…

Using the builder:

  1. Choose a column from the dropdown.
  2. Select the operator: =, !=, >, <, >=, <=, LIKE, NOT LIKE, IS NULL, IS NOT NULL, IN, NOT IN, BETWEEN.
  3. Enter the value (or both values if using BETWEEN).
  4. Press Add condition to add another one, combined with AND or OR.

Available actions:

  • Copy WHERE — copies only the WHERE clause to the clipboard to paste into the editor.
  • Run SELECT — generates SELECT * FROM table WHERE … and runs it in a new SQL Editor tab.

The panel shows a live SQL preview as you add conditions.

If the account can’t see the table’s columns, the builder doesn’t just open empty: a banner at the top says why and which privilege is missing.

Keywords: WHERE, builder, filter, condition, LIKE, BETWEEN, IN, IS NULL, no SQL, visual filter

DDL change history

Your connections' structural changes in one list: the statements run from Calíope and, if you watch the connection, what its schema snapshots find.

Where it is: SQL Editor › DDL History

The DDL history brings together, in one list, the structural changes to your connections: the definition statements you run from Calíope and, on a watched connection, the changes Calíope finds by comparing two snapshots of its schema.

Statements. Every definition statement that succeeds (CREATE, ALTER, DROP…) is recorded with its date and time, the connection and the user the connection signed in to the server with; those from before Calíope 1.8 show “—”. They are recorded while Enable successful query log is on in Settings. With it off nothing is recorded, except on a connection watched from this device: there, structural changes are always recorded.

Where it opens. Three buttons open the same sheet:

  • in the SQL Editor, DDL History (clock icon), in the header of the Schema panel;
  • in the SQL Log, DDL History, in its bar, only with a relational session;
  • in Schema Diff, DDL History, at the end of its bar.

The list starts filtered by the connection of the session you open it from, and the filter offers all of them. Search looks at the statements, the connection, the user, the database and the object names.

Watching a connection. In the sheet's Schema watching section —or with Set up watching, if watching is off— turn on Watch schema changes, choose the Databases to watch (at least one), the frequency (Every hour or Every day) and whether you want Notify of changes; turning that on asks for notification permission. The section appears for connections whose engine has the schema comparer. Calíope then takes a snapshot of the schema of each chosen database at that frequency, and another on connecting if the last one is more than an hour old. On the Mac, iPad and iPhone it also runs with Calíope closed; how each device does it is told in the topic “Scheduled runs with Calíope closed”. Each snapshot reads the definition of every table and object in the chosen databases: on a server with many objects, Every day weighs on it less.

What it finds. If a snapshot differs from the previous one, the list shows the change, with what was added, removed and changed, and one of three labels:

  • From this device: this device's DDL history has, in that interval, a statement that names what changed.
  • Not made from this device: it doesn't. That includes what you did yourself from another device, because the DDL history is not synced.
  • No known author: the DDL history was not complete in that interval —logging was off, it was cleared or pruned— and can't tell; Why? explains it in the row.

A statement matches if it names the table, or a column, index, foreign key or CHECK that changed. So an ALTER on another table that names a column with the same name also shows up as a candidate, and with two watched databases that have tables with the same name, an unqualified statement can match both: the opened change shows the statements that matched, so you can judge. Whatever is created and dropped between two snapshots from somewhere else leaves no trace. The list also shows the checks that couldn't read the schema, with their reason, and the stretches without changes.

What the account can’t see. Before each snapshot, Calíope asks the server what the connection’s account can see. If it can’t see a database’s whole schema —it lacks a privilege—, the check shows as failed with the missing privilege and no snapshot is taken: what it can’t see would show up as removed. With a session of that connection open, the Schema watching section says so when you choose the database, and Compare with now and Generate DDL to return to this snapshot don’t compare either.

One device watches. Each connection is watched from a single device, which keeps its snapshots and changes for a year; the last snapshot of each database is never deleted. Only the settings travel between devices (which databases, how often and from which device), never the history. On the other devices, the section says where it's watched from and offers Watch from here: the history starts again on this one, and the other deletes its own.

Notifications. With Notify of changes on, a change not made from this device, or with no known author, notifies you and, with system messages on, also leaves a message the watch reads. Tapping the notification opens that change. What was done from this device stays in the list and doesn't notify. The other notifications are covered in the topic “Calíope notifications”.

An opened change. It shows what changed, with the same rows as the comparer (topic “Compare database schemas”), the statements that matched, and two actions, which need a connected session of that connection:

  • Compare with now compares the snapshot from right after the change with the database as it is now.
  • Generate DDL to return to this snapshot writes the script that brings the database back to the snapshot from before the change, with Copy SQL to take it with you.

Neither of them runs anything or opens the editor.

In the list:

  • Copy SQL — a statement's copy button puts it on the clipboard.
  • Refresh — reloads the list.
  • Clear — the trash button deletes the recorded statements; changes already detected are kept. It asks for confirmation first.
  • Export — on iPad, iPhone and Apple Vision Pro, saves the statements the filter and search leave visible as a tab-separated (TSV) file.

The DDL history is stored on this device, in SQLite3, and never leaves it. The log of all queries has its own topic: “View the query log”.

Available on macOS, iPad, iPhone and Apple Vision Pro.

Keywords: ddl, audit, history, create table, alter table, drop, schema, changes, auditing, traceability, watch, watching, snapshot, who, user, notification, revert, sqlite, clear