SqlOtter
← All featuresAssistance & preferences

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

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. Cancel/No before submission stops that attempt. After a start, wait for feedback and independently inspect the destination before retrying; prior commits can remain.
Complete Restore Database window with mysql/d1 source, OceanBase Oracle/TEST5 target, 37 tables and 4457 rows, Findings, checked review acknowledgement and Cancel/Confirm Restore.
The complete restore review shows mysql/d1 → OceanBase Oracle/TEST5, 37 tables / 4,457 rows and MIG-321/MIG-110 findings with truncated text. “No blocking findings” and the checked review acknowledgement appear above Cancel / Confirm Restore. This is the captured setup before final confirmation. Database icons were updated to the current two-letter marks. Historical screenshot; UI icons have been updated.

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.

Default shortcuts and operation controls
ActionWindows / LinuxmacOSFocus and effect
Inspect environment templateClick selectorClick selectorConnection form: Auto / Local / Test / Production; no dedicated default binding.
Choose database / SchemaClick selector or tabClick selector or tabCheck the selected namespace and reread the current editor target; switching tabs can refresh it.
Open SQL EditorCtrl+Shift+U⌘+Shift+UQuery Editor and Analyzer in the active workspace/database; opening can refresh the editor target.
Execute selection / documentCtrl+Enter; focused Ctrl+Return⌘+Enter / ReturnSQL Editor: selected text, otherwise the whole document. Direct execution, not a preview shortcut.
Alternative ordinary runCtrl+Shift+Enter / Return⌘+Shift+Enter / ReturnConfigured alternate run actions use the same current editor and ordinary execution scope.
Execute Statement at CursorCtrl+Alt+Shift+Enter⌘+⌥+Shift+EnterRelational editor outside Terminal Mode; caret determines one statement independently of selection.
Floating Execute: short clickClickClickUses ordinary selection/document execution; it can submit SQL immediately after applicable target checks.
Floating Execute: holdHold about 0.6 sHold about 0.6 sSupported relational target: caret statement; release does not also run the whole document.
Open Custom Execution...Ctrl+Alt+Enter⌘+⌥+EnterCurrent SQL Editor: opens options. Nonblank selection defaults to Selected text, otherwise Entire script.
Confirm SQL TargetYes / No buttonsYes / No buttonsOnly for a detected editor/active-tab mismatch; No is default. Yes retains the editor target.
Accept custom execution optionsRun / Cancel buttonsRun / Cancel buttonsRun submits reviewed scope/options after applicable target checks; Cancel prevents this submission.
Open query-plan optionsContext menuContext menuShow Estimated Query Plan on supported targets; no dedicated default assigned by this action.
Allow Actual planAcknowledgement checkboxAcknowledgement checkboxPlan options: explicit risk acknowledgement enables actual-plan Run; the SQL really executes.
Local:SQL ValidationCtrl+Alt+V⌘+⌥+VLocal parser check in SQL Editor; separate from the AI syntax-check command and not proof of safety.
Check Target MetadataContext menuContext menuChecks references against editor-target metadata; can read the server. No dedicated default.
Cancel QueryProgress buttonProgress buttonCaret/custom execution: requests driver interruption and stops later statements; does not undo prior commits.
Edit table structureAlt+Enter⌥+EnterSelected/current table action: check database, Schema and table before changing the draft.
Prepare structure Save ChangesCtrl+Enter / Return⌘+Enter / ReturnFixed structure-dialog invoke action, also the Save Changes button; prepares SQL Preview when commands exist.
Execute SQL PreviewCtrl+Enter / Return⌘+Enter / ReturnFocus in the preview SQL editor: activates enabled Execute. This accepts the caller’s operation, not another preview.
Cancel SQL PreviewCancel buttonCancel buttonRejects this preview before its caller executes it. Cancel is the designated default button; do not infer every focused Enter key cancels.
Open Restore DatabaseCtrl+Alt+Shift+R⌘+⌥+Shift+RDatabase menu on the intended destination connection; choose an existing archive and review setup before confirmation.
Review target cleanup optionsCheckboxesCheckboxesDrop Existing Tables and Empty Target Database have different scopes and are mutually exclusive.
Acknowledge restore findingsReview checkboxReview checkboxCurrent restorable portable report plus acknowledgement gates the final action; changed inputs require renewed review.
Confirm Restore / Start Online MigrationCtrl+Enter / Return⌘+Enter / ReturnFixed restore-setup invoke action clicks the enabled final button. This can start writes; it is not a preview shortcut.
Cancel structure / restore setupEscEscFixed shared button-bar cancel in these dialogs; unsaved structure can ask Save/Discard/Cancel. Not a running-operation rollback.
Open team-library publication entryContext menuContext menuPublish Current SQL to Team Library... opens the team tab for a nonempty document; no dedicated default.
Publish Current SQLButton in selected libraryButton in selected libraryWritable team library and full editor document: opens the explicit upload warning; selection alone does not restrict text.
Accept / cancel publish warningYes / Cancel buttonsYes / Cancel buttonsNew publication: Cancel is default; Yes opens required-title metadata. Update has its own warning and upload path.
Finish Publish Shared QueryOK / Cancel buttonsOK / Cancel buttonsNonblank Title is required; final OK uploads the captured document. Cancel beforehand prevents the new upload.
AI Copy / Send / ReplaceCode-block buttonsCode-block buttonsManual text actions, no dedicated default. Extra insertion confirmation depends on dangerous template plus classified risk.
View Last SQL Execution ReportContext menuContext menuEnabled when statement outcomes exist; inspect completion/cancellation/rollback messages separately from cached results.
Query Execution HistoryCtrl+Shift+H⌘+Shift+HOpens 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

  • Connection
  • Database
  • Schema
  • Table
  • SQL query
  • restore

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.

Try it now

Put database work back into one focused workspace.

Start a Personal trial ↗