Tabellum Manual

Tabellum for desktop · Chapter 6

Diagrams, snapshots and comparing schemas

6.1 Schema diagrams#

The Diagram button next to a schema in the sidebar draws its tables and the foreign keys between them.

The demo shop as a diagram1234
  1. Find a table
  2. Columns or names only
  3. Put moved tables back
  4. Save as SVG or PNG
The demo shop as a diagram

Scroll or drag the empty canvas to pan, pinch or use the zoom buttons to zoom. A click on a table selects it, lights up its foreign keys and opens the inspector; a click on empty canvas clears the selection.

6.2 Snapshots#

A snapshot is a schema’s structure — tables, columns, keys, indexes, views, functions — saved as a file in snapshots/, without any rows. Take one with Save schema snapshot in the palette or the connection’s menu — before a risky change, for example — then compare against it later, or bring a database back to it.

6.3 Comparing two schemas#

Compare schemas (in the palette or a connection’s menu) compares two sides: the one to migrate 1 and the one to reach 2. Each side is a connection as it is now or a saved snapshot.

Choosing the two sides12
  1. The database to migrate
  2. The state to reach
Choosing the two sides

The result lists every object as added, dropped, changed or the same, with what changed in each.

What differs between yesterdays snapshot and the database12
  1. Also drop what the target lacks
  2. The migration as SQL
What differs between yesterday’s snapshot and the database

Migration 2 opens the SQL that makes the left side match the right in a new tab. It runs only when you run it, through the approval dialog. Drops are left out unless Include drops 1 is on.