Add a rule
In the connection form, open the Options tab and find Masking. Click Add Rule, then set three things:
Some patterns:


Two rules in the Masking section of the Options tab
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.
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)orcount(*). - A system table or catalog, such as
pg_stat_activity, in a query, a browse or an export. Schema lookups such asdescribe_tablestill return the structure. - Every column of a statement the driver does not trust: a subquery, a CTE or a
UNIONon MySQL and MariaDB, a compoundSELECTorVALUESon SQLite. One of those words inside a value, such as a filter on'union', counts too.
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
WHEREclauses 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 SELECTholds 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. WHEREandORDER BYtest a value without returning it, such asWHERE 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_stat4and a full-text table’s<name>_contentcopy show their columns as your rules name them. CockroachDB’scrdb_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.

