Database Studio
Database Studio opens a database you already run — Postgres or MySQL — and lets you browse it, write SQL against it, and ask plain-English questions about it. Everything is read-only until you turn on Allow changes for that database, and even then nothing is applied until you approve it.
On this page
What it is
Database Studio lets you look inside databases you already run — Postgres or MySQL — and, only
where you allow it, change them. You install it from the Marketplace, and it then opens from the
projects rail. Its id is still database-checker.
- Browse — pick a table and see its columns and its rows, 50 at a time.
- Links — see what the open table links to and what links to it, its indexes and how many rows it holds, with a small diagram you can click through (below).
- SQL — write and run your own query in an editor (below). Only a single
SELECTorWITHstatement is allowed, and it runs inside a read-only transaction that is always rolled back. - Work with the results — in Browse and on a SQL result: sort, filter, page, export and copy (below).
- Ask — ask a question in plain English and get an answer in words, with the tables (and a bar or line chart where it suits) that back it up.
- Changes — see changes waiting for your approval, approve or discard them, undo row changes, and turn Allow changes on or off for the selected database (below).
Where to find it
- The Marketplace — Database Studio is not part of the app download, so you install it from there first.
- The projects rail — once installed, Database Studio opens from there, like any other plugin.
- A database on this computer — plugins cannot open network connections to this computer or to your local network, so Database Studio reaches a local database through its socket file instead.
- Per-database settings — Most rows to return and Give up after, which cap what an export holds and how long a count may run.
- Omniscio 0.1.111 or newer is needed — the version whose sessions can be locked. On an older app Ask says to update and sends nothing.
How it behaves
Writing a query
The SQL tab's box is a code editor. It arrives a moment after the panel opens; anything you typed before then stays, cursor and all.
- Colours — keywords, text in quotes, numbers and comments each get their own colour, in the light and dark themes, using the open database's kind of SQL (Postgres or MySQL).
- Suggestions — start typing and the editor offers the database's tables. Name a table (
from customers, orfrom customers c) and it offers that table's columns too, aftercustomers.orc.. Suggestions come from the database's list of tables and columns, never from its rows, and a table's columns are looked up only the first time you use it. ↑ ↓ pick, Enter takes one, Esc closes the list. - Keys — ⌘↵ / Ctrl+Enter runs. ⌘⇧↵ / Ctrl+Shift+Enter previews a change where Allow changes is on (and runs the query elsewhere). ⌘S / Ctrl+S saves. Esc stops a running query.
- Stop — while a query runs, Stop stands where Run query was. It ends the query on the database itself, not just on screen, and the tab says it stopped. Switching to another database stops it too. Your Stop only ever ends your own query, never one running on another device.
- History — History lists, for the open database, the last 100 different queries you ran or previewed, newest first, and your saved ones. Click one to put it back in the editor. Clear history empties the recent list after asking; saved queries stay.
- Save… — keeps the query in the editor under a name, for this database. Saving under a name that exists replaces it; × in History deletes one.
History and saved queries are kept by Omniscio on this computer, per database. They hold only the SQL you wrote — never a row a query returned — and they are deleted with the database's entry. A query longer than 20,000 characters is not remembered and cannot be saved.
Working with results
- Sort — click a column heading: ascending, then descending, then back to the database's own order. The database sorts the WHOLE table or query, not just the rows on screen.
- Filter — Filter adds a condition on one column: is, is not, contains, starts with, is more than, is less than, is empty, is not empty. Add several and a row must match them all; remove one with its ×. The database does the filtering, over every row.
- Pages — Previous and Next move through the rows: 50 at a time in Browse, and the database's row limit at a time on a SQL result. In Browse each row appears on exactly one page.
- Export — save every row the current sort and filters match as CSV, JSON or Excel (.xlsx), whatever page you are on. An export holds at most the database's row limit (Most rows to return in that database's settings, 1,000 unless changed); when it stops there, the panel says so. Excel keeps numbers, dates and true/false as real values, and text as text.
- Copy — click a cell, then Copy cell (or ⌘C / Ctrl+C) to copy its whole value, even when the cell shows it shortened. Copy table copies the rows on screen so they paste as a table into a spreadsheet or a document.
Understanding a table
The Links tab shows the table you have open. It follows you: open another table from the list, or click one in the diagram, and the tab moves to it.
- Links — a link is one table pointing at another: a column (or several) whose values must match a row of the other table, which a database calls a foreign key. The tab lists the tables this one points at, the tables pointing at it, and a link to itself, each with the columns that link them.
- The diagram — the open table sits in the middle, the tables pointing at it on the left and the tables it points at on the right, each box with its own row count. Click a box (or tab to it and press Enter) to move there; Browse and the table list move with you. A crowded side shows 12 boxes and says how many more are in the list below.
- Indexes — the columns the database can look up quickly, in order, marked when they are the primary key or unique, or cover only some rows.
- How many rows — the database's own estimate, shown as "about 1.2 million rows". It is shown as exact only when the database really knows (a MySQL MyISAM table), and as "unknown" when there is no number to trust, such as a view or a table the database has never measured. Reading it never slows anything down.
- Count exactly — counts every row, only when you click it. A big table can take a while; Stop ends the count on the database, and a count stops by itself at the database's time limit (Give up after in that database's settings, at most 40 seconds here) and says so.
All of it is read from the database's own catalog: nothing is changed, and the AI helper is not involved.
Making changes
Changes are off for every database until you turn on Allow changes on the Changes tab. You are asked to confirm first. Only you can turn it on, in the panel; nothing else can — not an AI, not another Claude session, not the command line.
With it on:
- Your own changes — on the SQL tab, Preview change (⌘⇧↵ / Ctrl+Shift+Enter) tries an
INSERT,UPDATE,DELETE, or a table change (CREATE/ALTER/DROP TABLE,CREATE/DROP INDEX) and shows exactly what it would do. In Browse, double-click a cell to edit it (Enter to check, Esc to cancel, Empty to clear it). Nothing changes until you click Apply. - Proposed changes — the AI helper (when you ask it for a change) and your other Claude sessions can only propose. Database Studio tries the change, keeps it waiting, and posts an inbox note such as "Database Studio wants to change 12 rows in orders". Open Database Studio and approve or discard it on the Changes tab.
- Tried first — every change is run for real and then undone, so the preview shows how many rows it touches and the rows before and after (and, on Postgres, how the tables would change). When you approve, it is measured again: if the data moved in the meantime, nothing is applied and you see the new preview instead. A change of several statements applies all or nothing.
- Not tried first — MySQL cannot try a table change without making it, and a MySQL table on an engine without transactions (MyISAM) would really be written. Those changes say so plainly, are approved without a trial, and cannot be undone.
- Undo — a row change of up to 10,000 rows can be undone afterwards: Undo… prepares a new change that puts the old values back, which you check and approve like any other. Every preview says when a change cannot be undone, and why.
- Editing a cell works in any table, even one with no key column: the change must touch exactly one row, or it is refused and you are asked to reload.
Turning Allow changes off stops every waiting change from being applied.
How Ask works
Ask is a conversation with an AI helper about ONE database.
- It can only ask. The helper runs in a session the app locks to talking only: it has no tools, cannot run commands, cannot read your files, and every permission request it makes is refused. To see data it asks Database Studio for a look-up — list the tables, show a table's columns, sample some rows, or run one read-only query — and Database Studio runs it on that conversation's database through the same read-only checks as the SQL tab.
- You see how it got there. Each look-up is a numbered step. While it works the steps appear live; after it answers they fold into "How I got this".
- Saved answers are snapshots. Each conversation is kept with the date its data was read ("as of …"). "Re-run with today's data" asks every question again. Only the rows an answer actually showed are kept, and deleting the database from the list deletes its conversations.
- Continue in chat opens the conversation as an ordinary chat in Omniscio. It stays locked.
- Think harder uses a stronger model for a new conversation. It is slower and costs more.
What is sent to the AI
To answer, the helper's look-ups — table names, column names and the rows it reads (at most 50 per look-up) — are sent to the AI model. Before the first question on each database you are told this and asked to continue. The helper itself never changes anything: it can only propose a change for you to approve (see Making changes).
The Database Studio AI switch on the Ask tab turns the helper off for that database. It covers Database Studio's own helper only; your other Claude sessions can still read that database through the plugin's command-line endpoints.
If you are not looking at the panel when an answer arrives, an inbox note links back to it.
Database Studio shows short confirmations (such as "Table list reloaded") in Omniscio's own notification area. After updating, Omniscio asks you once to approve this, in Settings → Plugins.
Opening a screen from a link
Database Studio answers omniscio://plugin/database-checker/<route> links, so a person or an
agent can hand you a link that opens one screen. The manifest lists three routes, so once the
plugin is enabled GET /deep-link/routes?owner=database-checker shows them to an agent that wants
to build one.
omniscio://plugin/database-checker/homeopens Browse.omniscio://plugin/database-checker/tab/<tab>opens one tab, where<tab>isbrowse,links,ask,sqlorchanges.omniscio://plugin/database-checker/table/<key>opens one table or view, where<key>is the schema-qualified key shown in the table list, such aspublic.users.
A link acts like clicking the tab or the table yourself. A table link that arrives while the panel is still starting waits until the table list has loaded, and a newer link replaces an older one. A table that is not in the database you are connected to, or any other path, opens nothing, and the plugin answers "That table is not in this database." or "That link does not point at a Database Studio screen." Both messages are plain English and do not follow the language setting yet.
Related
AI-native plugin sessions covers what a plugin-backed session can do from the inside. The plugin marketplace is where Database Studio is found and installed.
Last verified 2026-10-14