Assistance & preferences
Check the target before a consequential change.
Check connection, database, Schema and editor context, then use the safeguards that actually belong to SQL execution, structure changes, restore or sharing.
Source-reviewed development workflow; release build, physical keys and live operation acceptance remain pending. Controls vary by action and target.
How it works
Environment labels and isolated database tabs help you orient your work. SQL-target mismatch, editable structure SQL Preview, portable-restore acknowledgement and explicit team publishing each have their own trigger and stopping point.
A quick walkthrough
- Read the workspace/connection/database/Schema and the action’s actual target. The top environment line summarizes open tabs; the shared SQL Editor target refreshes when database tabs change.
- Choose the exact SQL scope: ordinary Execute runs a selection or the whole document directly; Custom Execution provides a separate target/scope preview. A mismatch prompt, when present, retains the editor target.
- For structure edits, Save Changes opens editable SQL Preview and Execute applies it. For portable restore, review the current findings, target cleanup choices and acknowledgement before Confirm Restore.
- For team sharing, check the receiving library and whole document. Publish Current SQL first warns about upload; a new publication then requires a nonblank Title and final acceptance.
- Cancel/No before submission stops that attempt. After a start, wait for feedback and independently inspect the destination before retrying; prior commits can remain.

Default shortcuts and operation controls
Check the owning window and focus before a key or click. Configurable defaults, fixed dialog keys and buttons have different scopes.
| Action | Windows / Linux | macOS | Focus and effect |
|---|---|---|---|
| Inspect environment template | Click selector | Click selector | Connection form: Auto / Local / Test / Production; no dedicated default binding. |
| Choose database / Schema | Click selector or tab | Click selector or tab | Check the selected namespace and reread the current editor target; switching tabs can refresh it. |
| Open SQL Editor | Ctrl+Shift+U | ⌘+Shift+U | Query Editor and Analyzer in the active workspace/database; opening can refresh the editor target. |
| Execute selection / document | Ctrl+Enter; focused Ctrl+Return | ⌘+Enter / Return | SQL Editor: selected text, otherwise the whole document. Direct execution, not a preview shortcut. |
| Alternative ordinary run | Ctrl+Shift+Enter / Return | ⌘+Shift+Enter / Return | Configured alternate run actions use the same current editor and ordinary execution scope. |
| Execute Statement at Cursor | Ctrl+Alt+Shift+Enter | ⌘+⌥+Shift+Enter | Relational editor outside Terminal Mode; caret determines one statement independently of selection. |
| Floating Execute: short click | Click | Click | Uses ordinary selection/document execution; it can submit SQL immediately after applicable target checks. |
| Floating Execute: hold | Hold about 0.6 s | Hold about 0.6 s | Supported relational target: caret statement; release does not also run the whole document. |
| Open Custom Execution... | Ctrl+Alt+Enter | ⌘+⌥+Enter | Current SQL Editor: opens options. Nonblank selection defaults to Selected text, otherwise Entire script. |
| Confirm SQL Target | Yes / No buttons | Yes / No buttons | Only for a detected editor/active-tab mismatch; No is default. Yes retains the editor target. |
| Accept custom execution options | Run / Cancel buttons | Run / Cancel buttons | Run submits reviewed scope/options after applicable target checks; Cancel prevents this submission. |
| Open query-plan options | Context menu | Context menu | Show Estimated Query Plan on supported targets; no dedicated default assigned by this action. |
| Allow Actual plan | Acknowledgement checkbox | Acknowledgement checkbox | Plan options: explicit risk acknowledgement enables actual-plan Run; the SQL really executes. |
| Local:SQL Validation | Ctrl+Alt+V | ⌘+⌥+V | Local parser check in SQL Editor; separate from the AI syntax-check command and not proof of safety. |
| Check Target Metadata | Context menu | Context menu | Checks references against editor-target metadata; can read the server. No dedicated default. |
| Cancel Query | Progress button | Progress button | Caret/custom execution: requests driver interruption and stops later statements; does not undo prior commits. |
| Edit table structure | Alt+Enter | ⌥+Enter | Selected/current table action: check database, Schema and table before changing the draft. |
| Prepare structure Save Changes | Ctrl+Enter / Return | ⌘+Enter / Return | Fixed structure-dialog invoke action, also the Save Changes button; prepares SQL Preview when commands exist. |
| Execute SQL Preview | Ctrl+Enter / Return | ⌘+Enter / Return | Focus in the preview SQL editor: activates enabled Execute. This accepts the caller’s operation, not another preview. |
| Cancel SQL Preview | Cancel button | Cancel button | Rejects this preview before its caller executes it. Cancel is the designated default button; do not infer every focused Enter key cancels. |
| Open Restore Database | Ctrl+Alt+Shift+R | ⌘+⌥+Shift+R | Database menu on the intended destination connection; choose an existing archive and review setup before confirmation. |
| Review target cleanup options | Checkboxes | Checkboxes | Drop Existing Tables and Empty Target Database have different scopes and are mutually exclusive. |
| Acknowledge restore findings | Review checkbox | Review checkbox | Current restorable portable report plus acknowledgement gates the final action; changed inputs require renewed review. |
| Confirm Restore / Start Online Migration | Ctrl+Enter / Return | ⌘+Enter / Return | Fixed restore-setup invoke action clicks the enabled final button. This can start writes; it is not a preview shortcut. |
| Cancel structure / restore setup | Esc | Esc | Fixed shared button-bar cancel in these dialogs; unsaved structure can ask Save/Discard/Cancel. Not a running-operation rollback. |
| Open team-library publication entry | Context menu | Context menu | Publish Current SQL to Team Library... opens the team tab for a nonempty document; no dedicated default. |
| Publish Current SQL | Button in selected library | Button in selected library | Writable team library and full editor document: opens the explicit upload warning; selection alone does not restrict text. |
| Accept / cancel publish warning | Yes / Cancel buttons | Yes / Cancel buttons | New publication: Cancel is default; Yes opens required-title metadata. Update has its own warning and upload path. |
| Finish Publish Shared Query | OK / Cancel buttons | OK / Cancel buttons | Nonblank Title is required; final OK uploads the captured document. Cancel beforehand prevents the new upload. |
| AI Copy / Send / Replace | Code-block buttons | Code-block buttons | Manual text actions, no dedicated default. Extra insertion confirmation depends on dangerous template plus classified risk. |
| View Last SQL Execution Report | Context menu | Context menu | Enabled when statement outcomes exist; inspect completion/cancellation/rollback messages separately from cached results. |
| Query Execution History | Ctrl+Shift+H | ⌘+Shift+H | Opens execution records for target, SQL and feedback review; records are not an undo or independent readback. |
- Settings → Shortcuts can replace configurable defaults. Fixed dialog chords and mouse gestures are owned by the specific window; the menu remains the clearest way to inspect an action.
- On macOS, ⌘ is Command and ⌥ is Option. The reviewed portable-Ctrl bindings provide macOS modifier compatibility; this table shows the Command form. Source inspection is not physical-key acceptance.
- Ctrl/⌘+Enter can run SQL, prepare structure preview, execute that preview or confirm restore depending on the focused window. No general safety hotkey or universal typed-name prompt is implemented.
Objects in this workflow
What to know
- LOCAL/TEST/PROD classification and database-tab isolation do not enforce read-only access or isolate server data. The workspace top line can reflect another open Production tab.
- No universal typed-name confirmation or comprehensive destructive-SQL gate exists. Matching targets and many ordinary actions can run without a safety preview; parsing and risk labels do not prove safety.
- Ctrl/Command+Enter depends on the focused window: it can run SQL, prepare a structure preview, execute that preview or invoke the enabled final restore button.
- Custom execution initially uses per-statement commit, stop-on-error and no timeout. Eligible script transactions are a specific path; not all DDL, structure changes or restores can roll back.
- Driver cancellation and timeout are requests. Restore/migration can be incomplete or partially committed; a preview/summary is not a full verification report.
- Team publication shares the full document with current members and has no automatic redaction. AI insert/replace only adds confirmation for a dangerous template plus qualifying classified risk, and does not execute SQL.