Tabletist 0.8: your CSV and Parquet files, joined to your database

Tabletist 0.8.0 is out. Tabletist is a database client for PostgreSQL, MySQL and MariaDB, SQLite and BigQuery. It is written in Rust and runs on Linux, macOS and Windows. This release adds a new connection type for data files, two interface languages, and connection groups.

A folder of files is a database now

Exports pile up: a CSV here, a Parquet file there. To read one next to the data in your database, you used to import it somewhere first. The new connection type, Files, takes a folder or a list of files, and each file becomes a table.

A CSV file joined to a PostgreSQL table in the Tabletist SQL editor
A CSV file joined to the orders table of a PostgreSQL database

It reads CSV, TSV, Parquet, JSON, NDJSON and Excel files (the first sheet only). A .duckdb file becomes a schema with its own tables. DuckDB does the reading inside Tabletist, so nothing is uploaded and there is no server to run. The grid with its filters and sorting, Structure, the SQL editor, History, Export, Copy as and agents all work on these tables as on any other connection.

A Files connection can also attach your saved PostgreSQL, MySQL and SQLite connections, read-only. Then one query joins a file to your live tables:

SELECT r.order_id, r.reason, o.email, o.total
  FROM returns r
  JOIN bookshop_development.orders o ON o.id = r.order_id

Each attached connection is a schema in the sidebar, with its environment badge, so a join that reaches production is easy to spot.

Several changes in this release are about CSV files that don’t read. The connection’s Test opens every file it can and lists the ones it couldn’t, with the reason: “Read 3 of 4 files · returns.csv failed”. When a value doesn’t fit its column, Tabletist names the row, the column and the value, and offers three fixes: read the column as text, read the value as empty, or skip the file. A file that fails for another reason can be skipped. The fix you choose is saved with the connection, and Reset removes it. The same banner shows up if a file breaks while you browse it, so you don’t have to go back to the connection dialog. Under Reading CSV you can also set the header row, the delimiter and how column types are guessed.

The files can be edited too. Turn off Open read-only, change values, add and delete rows, and save. A CSV, Parquet or JSON file is written again in full, and the form tells you which file is the largest one a save would rewrite. If a file changed on disk after you opened it, Tabletist doesn’t overwrite it: your changes stay pending until you reload. A .duckdb file is changed in place, in one transaction.

Russian and Brazilian Portuguese

Settings › General › Language offers English, Português (Brasil) and Русский, or follows your system. The window and the menu bar switch right away, and numbers, sizes and dates are written the way each language writes them.

The Brazilian Portuguese translation covers all 2,379 messages, but no native speaker has reviewed it yet. If Portuguese is your language and something reads wrong, please open an issue, or a pull request against assets/i18n/pt-BR.po. The translating guide explains how to add another language.

Groups, and two databases at once

Connections can now go in groups you name, for example by product, by client, or production and staging. The connection form has a Group field, and the connections list shows each connection under its group.

One connection can also have two databases open at the same time. In the database menu, ⌘-click or ⌘↩ opens a database in a new window (Ctrl on Windows and Linux), without asking for the password again. When Tabletist restores your last session, each window comes back on its own database.

Faster exports from far away

Exports used to wait on PostgreSQL once for every 5,000 rows. Now they wait only a few times in total. Over a link with 200 ms round trips, exporting 200,000 rows to CSV went from 10.6 seconds to 1.8, connecting included. On MySQL the same export went from 2.3 seconds to 1.3. The numbers and how they were measured are in the pull request.

Also in 0.8.0

  • MySQL and MariaDB verify-full now trusts the system’s certificates, so a company CA trusted in the macOS Keychain works, as it already did for PostgreSQL.
  • PostgreSQL accepts a CA file in binary DER, which is what most .cer files are.
  • Read-only runs work on Amazon Aurora MySQL readers that don’t forward writes.

The rest is in the release notes.

What it doesn’t do yet

  • You can read and edit files, but you can’t import one into a database table yet.
  • Excel files open read-only, and only their first sheet.
  • On a Files connection the SQL editor only reads. Edits go through the grid.
  • The first time a Files connection needs DuckDB’s reader for Excel, PostgreSQL, MySQL or SQLite, DuckDB downloads it. After that it works offline.
  • Binary values still can’t be edited, and BigQuery stays read-only.

Try it

On macOS, run brew install --cask igor-alexandrov/tabletist/tabletist, or download the disk image. On Windows, use the installer. On Linux, the AppImage is the quickest way to try it, and the .tar.gz installs it with a launcher entry. Run it with --demo to look around without a database. If you already have Tabletist, it will offer 0.8.0 itself.

Downloads are on the site, and the code is on GitHub. Bug reports are welcome, especially about CSV files that don’t read.