Skip to main content
Turn on masking before a screen share, a pairing session or a recorded demo on production data. A masked column still shows a value in every row, so you see that a column holds an email, or that two rows share one, without seeing the address.

Add a rule

In the connection form, open the Options tab and find Masking. Click Add Rule, then set three things: Some patterns:
Masking section of the connection form with a Column rule on *.email set to Email and a Column rule on users.ssn set to Last 4 CharactersMasking section of the connection form with a Column rule on *.email set to Email and a Column rule on users.ssn set to Last 4 Characters

Two rules in the Masking section of the Options tab

When two rules match one column, the first in the list wins. Rules save with the connection, sync through iCloud and travel with a connection published to the Team Catalog.

Masks

A value that is already NULL stays NULL. Last 4 Characters shows •••• for a value of four characters or fewer, and Email shows •••• for a value with no @. A Stable Hash stays the same until TablePro quits, so it matches equal values across the grid, an export and an MCP result from one session.

Where values are masked

One rule covers every place a value leaves TablePro:
  • The data grid and a query tab’s results, with an eye-slash icon in the header of each masked column.
  • The row inspector, charts, Copy, Copy As and Export Results.
  • File > Export, for every format.
  • The AI assistant, both the results summary it reads and the queries it runs.
  • Every MCP tool that returns rows, and AppleScript and Shortcuts results.
  • Shared links, where a column a rule masks cannot be set to Keep.
  • The referenced-row preview of a foreign key, Server Dashboard tiles and the Routine Debugger result grid.
A query result has no source table for most engines, so a table.column rule matches a query result by its column name alone. users.ssn then also masks an ssn column a query reads from another table.

Masking for AI and scripts

Results for MCP clients, the AI assistant, Claude Agent, AppleScript and Shortcuts are masked by the table column each result column reads, as well as by its name. On PostgreSQL, MySQL, MariaDB and local SQLite, SELECT email AS contact FROM users comes back masked by a *.email rule. On a connection with at least one rule, a column that reads no column of a user table comes back as ••••, whatever its name. The result’s status message names the columns masked this way. That covers:
  • An expression or an aggregate, such as lower(email) or count(*).
  • A system table or catalog, such as pg_stat_activity, in a query, a browse or an export. Schema lookups such as describe_table still return the structure.
  • Every column of a statement the driver does not trust: a subquery, a CTE or a UNION on MySQL and MariaDB, a compound SELECT or VALUES on SQLite. One of those words inside a value, such as a filter on 'union', counts too.
These cannot trace a column: ClickHouse, Redis, CockroachDB, Redshift, TiDB, Databend, OceanBase, a SQLite remote file opened On the Server, and every engine from the plugin registry. On a connection with rules, every column of a query on them comes back masked, and a browsed or exported table is matched by column name, as in the grid.

On a connection with rules

The rules also withhold text that can repeat a stored value: A refusal, a timeout or a cancel from TablePro itself keeps its text.

Editing and Reveal

A grid that shows a masked column is read-only, since a mask cannot be written back or used to find its row. To see or edit the real values, right-click a masked column’s header and choose Reveal Masked Values…. TablePro asks for Touch ID, or your macOS password on a Mac without it, and reloads the tab unmasked. A query tab whose statement is not a read reveals on its next run instead. Reveal lasts until the tab closes or opens another table. Other tabs, exports from other tabs, the AI assistant and MCP stay masked.

Limits

Masking hides values inside TablePro. It does not replace database permissions: anyone with the connection’s credentials can read the data with another client.
  • Filters, sorts and WHERE clauses run on the server against the stored values, so a filter on a masked column finds the real matches.
  • In the grid, a rule matches the column name a result reports. A query that renames or computes the column, such as SELECT email AS contact, shows it unmasked. A Type rule catches a renamed column that keeps its type. Results for AI and scripts are masked by what each column reads.
  • Copy To, copying objects to another database and Compare move the stored values, not the masks.
  • The Edit Document sheet shows a stored document’s fields without Reveal. Query plans, and the sessions and slow queries on the server dashboard, are not masked in the app.

Known limits for AI and scripts

A client that may run SQL can still learn a masked value these ways:
  • A view, a generated column or a table copied with CREATE TABLE … AS SELECT holds the value under its own name. A rule that does not name that column leaves it unmasked, in the grid too. Making the copy is a write, which a Read Only token or connection refuses.
  • WHERE and ORDER BY test a value without returning it, such as WHERE email LIKE 'a%'. Row counts and row order answer one guess at a time.
  • How long a query takes, and whether it fails, can depend on a masked value. A client can probe both, even with the error text withheld.
  • A statement a client or a person typed comes back as written, in history and in its own results. So do literals another session sent, wherever the database shows them outside the masked system views.
  • On an engine that cannot trace columns, only the system databases and schemas the engine declares are masked whole, not system tables inside a user database. On a SQLite file opened On the Server, sqlite_stat4 and a full-text table’s <name>_content copy show their columns as your rules name them. CockroachDB’s crdb_internal, whose lock and contention views print index keys with their values, is not masked whole either.
  • Column names are never masked. On MySQL, a client that may prepare statements can build a column name from a value with PREPARE.