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.

Data Import

Import data from CSV, TSV, JSON or Excel

Loads one or more CSV, TSV, JSON or Excel files into an existing table or a new one, with a three-step wizard that checks on the server how many rows went in.

Where it is: Schema tree › context menu › Import data…

The Data Import wizard loads a file into a table without writing SQL: into one that already exists, or into a new table it creates.

How to open it (with a session that can write: in a read-only one it isn't offered):

  • In the schema tree, the context menu of a database: Import a file into a new table…
  • The context menu of a table: Import data…; that table becomes the destination.
  • The import button in the header of the schema panel, next to the DDL history: it opens a new table in the selected database.
  • On the Mac, also File › Import data…, even when the SQL Editor isn't in front.
  • On iPad, iPhone and Apple Vision Pro, the context menu opens with a long press; on Vision Pro, look at the name and pinch and hold.

Step 1 — The file

  • Press Select files… and pick one or more.
  • CSV (.csv) — comma-separated, with RFC 4180 quoting: a quoted field can hold commas and line breaks.
  • TSV (.tsv, .tab) — tab-separated.
  • JSON — an array of objects ([{"col": value}, …]); the keys are the column names.
  • Excel (.xlsx) — the first sheet is read; the others don't go in.
  • A CSV or TSV has no size limit: it's read in chunks, and when you pick it only the first 10,000 rows are read, for the preview and the types. A JSON or Excel file is read whole, and one over 64 MB is turned down before it's opened, with the file's size and the maximum.
  • Text has to be UTF-8, with or without a BOM. A file in another encoding is turned down with a message saying so: save it as UTF-8 and pick it again.
  • Several at once go into the same table, one after another. With a header they're matched by column name, in any order; without one, by position. A file that doesn't match the first is named along with what it's missing or has extra, and Next → stays off until you remove it.
  • If the first row of a CSV, a TSV or a sheet isn't names, turn off First row is header: the columns are numbered and that row goes in with the rest.

Step 2 — Columns: the destination —an existing table or a New table, with a name you can change— and, for each column of the file, where it goes and what type it is (see Columns and types when importing). A new table whose name already exists isn't overwritten: the wizard says so and leaves you on this step.

Step 3 — Import

  • If the server supports more than one way of handling duplicates, choose the mode (see Import modes).
  • Choose the batch size: 100, 500 —the default— or 1000 rows per statement.
  • Press Import. If the connection has a label that asks to confirm writes, the question comes once, with the CREATE TABLE and the first INSERT in view.
  • A bar shows the progress. Closing the wizard does not stop the import: it carries on in Activity, in the toolbar, and opening the wizard again shows how far it has got. Stop stops it between one batch and the next; closing the session stops it too.
  • When it ends, if you closed the wizard or Calíope is not in front of you, the system notifies you with its sound; turn it on or off in Settings › General › Notifications › Migration, import or export finished. If there were errors it says so and, if any batch failed, how many out of how many. A stopped import does not notify.

The result is counted by the server, before and after, not by the app:

  • The rows in the file, the ones that went in, the ones set aside and the ones the server didn't accept. A cell that doesn't fit its column's type sets the whole row aside instead of sending it as text; the first ten are shown, with their row, their column and the reason.
  • A verdict: ✓ Matches, ✗ Does not match with the difference, or – Not compared with the reason (the server didn't allow counting, or the table merges rows when it stores them).
  • With several files, one line per file and, if it stopped, in which one.

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

Keywords: import, csv, tsv, json, excel, xlsx, data, load, wizard, file, several files, new table, create table, rows, table, insert, count, utf-8

Columns and types when importing

How each column of the file is assigned to the destination table and how the types of a new table are proposed, in step 2 of the import wizard.

Where it is: Schema tree › context menu › Import data…

Step 2 of the wizard decides where each column of the file goes and what type it is. Next to each column you see three values from the file, so you can recognise it.

Into an existing table

  • The picker on the right offers the table's columns. The ones with exactly the same name —case included— arrive already assigned; the rest start on Ignore: assign them by hand if they belong.
  • Ignore leaves that column out. It's useful when the file has more columns than the table, or to skip an identifier the server generates itself.
  • Each row shows the type of the destination column and warns if the sample doesn't fit, with Doesn't fit and the reason: the values are of another class (text in a numeric column), or there are values longer than the column takes. You can import anyway: the rows that don't fit are set aside, and the result counts them.
  • Check that every NOT NULL column without a default has a file column assigned: otherwise the server rejects those rows.

Into a New table

  • Each column of the file is a column of the table, with its name.
  • The wizard proposes its type from the first 10,000 rows (with several files, from the sample of all of them) among six classes: integer, decimal, boolean, date, date and time, and text. You change it with the picker, and below it you see the type that class has in the engine.
  • The rules: the whole value has to have the shape, not just start with it; true and false are booleans; a number with leading zeros (00123) or with an exponent (1e5) stays as text, because it's usually a code; a date is only proposed in ISO form (2026-11-22, 2026-11-22 10:30:00, also with T), and 01/02/2026 stays as text, because there's no telling which is the day and which the month; an empty cell is NULL and doesn't count.
  • If a column mixes classes, it gets the widest one that holds both: integer with decimal gives decimal, date with date and time gives date and time, and any other mix, text.
  • The table is created with columns that allow NULL and without a primary key or indexes: if you need them, add them afterwards.

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

Keywords: mapping, columns, assignment, ignore, header, source, destination, import, types, proposed type, new table, doesn't fit, csv, tsv, json, xlsx

Import modes: what to do with duplicates

When a row clashes with a primary or unique key: fail, skip it or replace the one that was there. What is offered depends on the server.

Where it is: Schema tree › context menu › Import data…

In step 3 of the wizard you choose what happens when a row of the file clashes with a primary or unique key that already exists. The wizard only offers the modes the server can keep.

Insert (on every server; where Skip duplicates is offered, the wizard starts on that one): the batch statement that clashes fails, and the import says so. Use it when there shouldn't be duplicates and you want to find out if there are.

Skip duplicates: the clashing row is dropped and the rest goes on. It's useful for loading a file that's partly in the table already. The result counts it among the rows the server didn't accept.

Replace duplicates: the row that was there is deleted and the file's row goes in. Bear in mind that it fires the delete triggers and that the columns the file doesn't carry go back to their default value.

In a new table the mode changes nothing: it's created without a primary key or unique indexes, so no row clashes.

MySQLMariaDBAuroraTiDB

All three are offered.

PostgreSQL

Insert and Skip duplicates are offered: there's no replace.

SQL ServerOracleClickHouse

Only Insert, so the picker doesn't appear.

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

Keywords: insert, insert ignore, replace, duplicates, conflict, primary key, unique key, mode, import, replace into