Database Operation and Target Safeguards
Check connection, database, Schema and editor context, then use the safeguards that actually belong to SQL execution, structure changes, restore or sharing.
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.
- 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.
Availability and limits
Source-reviewed development workflow; release build, physical keys and live operation acceptance remain pending. Controls vary by action and target.
- 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.