SqlOtter
← All documentationAssistance & preferences

Assistance & preferences

Use AI with explicit context and review

Configure an approved provider, inspect what will be disclosed, and review explanations or SQL drafts before using them.

What this feature does

The workspace assistant can explain structures and errors, draft queries/CRUD/test data, compare mentioned structures and suggest JOINs. Provider access, data disclosure, text insertion and database execution have separate boundaries.

When to use it

Use it for an advisory draft with approved nonsensitive context. You can explore the controls with an unsent fictional prompt; no AI call or database write is needed for that walkthrough.

Complete AI Settings window showing provider URL and protocol, models, Generation, and Safety and Limits.
Complete AI Settings with the API key field showing a placeholder. Model names, Unlimited and the checked restore option are this capture’s selections; see the guide for defaults and operational limits.

Before you start

Check the actual provider/endpoint, required authentication, model and consent. SqlOtter Official needs a confirmed supported location, account access, an available offering and sufficient available prepaid AI wallet credit; the service denies Official AI in mainland China and when location is unknown. Hong Kong, Macao and Taiwan are outside this location restriction. A desktop subscription or trial grants no AI wallet credit. Privacy-level labels are not uniformly enforced across the reviewed chat/table paths, so inspect and minimize actual context.

Default shortcuts and visible controls

Bindings below distinguish workspace actions, composer keys and visible controls. Docs and Features render these same rows. Check focus, popup state and configured bindings before using them.

Default shortcuts and visible controls
ActionWindows / LinuxmacOSFocus, scope and effect
Show / hide the AI panelCtrl+F1⌘+F1Current workspace; first opening may require consent. Hiding is not cancellation.
Find in the focused AI viewCtrl+F⌘+FAI focus: history/default view searches saved chats; a conversation uses Search chat.
Open AI SettingsVisible control; no dedicated defaultVisible control; no dedicated defaultTools → Settings → AI Settings, or the panel settings button.
Accept or cancel the agreementVisible control; no dedicated defaultVisible control; no dedicated defaultCheck the agreement box before Accept and Continue; Cancel leaves it unaccepted.
Withdraw AI ConsentVisible control; no dedicated defaultVisible control; no dedicated defaultAI Settings: blocks later AI tasks until accepted again; does not cancel active work.
Enable AI features / ProviderVisible control; no dedicated defaultVisible control; no dedicated defaultConfiguration controls; verify the actual route and use consent withdrawal for blocking new tasks.
Base URL / Full URL / Wire API / API KeyVisible control; no dedicated defaultVisible control; no dedicated defaultDirect providers; exact endpoint and Chat Completions/Responses payload must agree.
Add / Remove / Set DefaultVisible control; no dedicated defaultVisible control; no dedicated defaultCustom provider list; Models is one name per line, not an automatic cross-provider failover list.
Get Models / official EffortVisible control; no dedicated defaultVisible control; no dedicated defaultDiscover the current catalog; cached choices are not live availability proof.
Composer Model / Reasoning EffortVisible control; no dedicated defaultVisible control; no dedicated defaultSaves provider/model/effort for future requests; active workers retain their snapshot.
Language / Stream / Request Timeout / Max Tokens / Temperature / Top PVisible control; no dedicated defaultVisible control; no dedicated defaultGeneration settings; output limits and sampling support depend on the service.
Privacy LevelVisible control; no dedicated defaultVisible control; no dedicated defaultSchema only / Ask each time / Full data / Local only are not uniformly enforced across chat/table paths.
Daily Token LimitVisible control; no dedicated defaultVisible control; no dedicated defaultLocal estimate, initially 100000; 0 = Unlimited. Not the wallet ledger or a strict spending cap.
Advanced Settings proxy / Extra Headers JSONVisible control; no dedicated defaultVisible control; no dedicated defaultRemote AI uses application proxy; loopback bypasses it. Official ignores client extra headers.
Search object mentionsType @ + nameType @ + nameConnection/database/table/field metadata; broad mentions expand more context.
Choose a command or skillType / or $Type / or $Composer picker; selection adds a command/skill, then review before sending.
Navigate and select a popup candidateUp / Down, EnterUp / Down, EnterMention/command/skill popup consumes Enter for selection, not chat submission.
Dismiss a suggestion popupEscEscCloses that picker; does not cancel an active AI request.
Remove an adjacent mention / empty command chipBackspace / Delete⌫ / forward DeleteNo modifiers: removes adjacent mention; an empty composer can clear its selected command chip.
Attach fileVisible control; no dedicated defaultVisible control; no dedicated defaultPNG/JPG/JPEG/GIF/BMP/WebP, SQL/JSON/TXT only; PDF/Office/CSV/archives are unsupported.
Paste an image or local pathsCtrl+V⌘+VComposer: supported files attach; unsupported paths become text. File names and paths can be sent.
Remove a file from the pending messageVisible control; no dedicated defaultVisible control; no dedicated defaultDelete its file_N.ext token, then recheck the composer; this is not file erasure.
Send a messageEnter / SendEnter / SendComposer without an active popup; may start a billable request and an ordinary-chat title request.
Insert a newlineShift+EnterShift+EnterComposer text entry; suggestion popup handling takes precedence.
Queue steer message / Remove queued messageVisible control; no dedicated defaultVisible control; no dedicated defaultDuring a response, nonempty submit queues a follow-up that can send automatically afterward.
StopVisible control; no dedicated defaultVisible control; no dedicated defaultVisible when the current conversation is running and composer is empty; cancels active panel tasks, not the queue or server settlement.
Recall recent user inputsUp / DownUp / DownEmpty composer or already browsing input history; up to 100 entries, no automatic resend.
Force input-history browsingCtrl+Alt+Up / Down⌘+⌥+Up / DownComposer; restores a previous input/draft. Verify chips and files before resending.
Table → AI action / User Request / Skills / OKVisible control; no dedicated defaultVisible control; no dedicated defaultChoose at least one skill; action-dialog OK can immediately send, while Cancel leaves it unsent.
SQL editor AI menuVisible control; no dedicated defaultVisible control; no dedicated defaultSelected SQL first, otherwise full text plus recognized structure; menu action can dispatch directly.
Generate Test Data → RowsVisible control; no dedicated defaultVisible control; no dedicated defaultInitially 10, range 1–1000; requests a draft count, does not insert records.
Copy / Copy answerVisible control; no dedicated defaultVisible control; no dedicated defaultCopies one code block or raw answer to the clipboard; no SQL execution.
Send to SqlEditorVisible control; no dedicated defaultVisible control; no dedicated defaultInserts recognized code at the editor cursor; check the resulting target and text.
Replace SqlEditor contentVisible control; no dedicated defaultVisible control; no dedicated defaultReplaces regular editor text or the editable Terminal Mode command; no execution.
Review AI SQL / High-Risk AI SQLVisible control; no dedicated defaultVisible control; no dedicated defaultConditional confirmation for dangerous workspace templates and classified risk; not a universal insert preview.
History / Rename / DeleteVisible control; no dedicated defaultVisible control; no dedicated defaultLocal saved chats; Delete asks for confirmation and does not erase provider records or attached files.
New Chat / Close PanelVisible control; no dedicated defaultVisible control; no dedicated defaultNew Chat cancels active work by default; recheck pending text/chips/files. Close Panel hides and retains history.
Compact Context / Auto Compact Keep Recent MessagesVisible control; no dedicated defaultVisible control; no dedicated defaultLocal abbreviated memory; initial recent-message setting 4. Compaction is not deletion or anonymization.
Restore AI dialog when application launchesVisible control; no dedicated defaultVisible control; no dedicated defaultInitially off; can restore history ID, draft and scroll when the saved session had AI open.
Run AI Service Benchmark / RegenerateVisible control; no dedicated defaultVisible control; no dedicated defaultCan make real AI requests and consume usage; optional and excluded from the safe screenshot walkthrough.
  • Settings → Shortcuts shows configurable application bindings. Composer/popup keys are handled by their own controls and may not be remappable there.
  • On macOS, ⌘ means Command and ⌥ means Option; the composer history chord uses Qt Control/Alt, which maps to Command/Option. Function keys may require Fn, and forward Delete may require Fn+⌫.
  • These are current implementation defaults, not recorded desktop-keyboard acceptance. No dedicated shortcut is established for every AI task, and insertion is separate from execution.

How to use it

  1. Open AI Settings and verify Provider, model/effort, endpoint protocol, output/network options and local limits; distinguish official account/wallet access from direct or local providers.
  2. Read the global AI agreement. Inspect messages, prior history, SQL, mentions, sample rows/statistics, file contents and original names/paths before approving external processing.
  3. Choose a specific table/field or minimal SQL instead of broad connection context. Table action OK and editor AI menu actions can submit immediately after consent.
  4. Compose a focused request. Enter sends, Shift+Enter inserts a newline, and a suggestion popup consumes Enter for selection. During generation a nonempty submit queues a follow-up.
  5. Review the complete answer and any failure/cancellation note. Use Copy, Send to SqlEditor or Replace SqlEditor content deliberately, then check the editor target.
  6. Keep generation and insertion separate from execution. For the safe fictional walkthrough, stop before Send/OK, benchmark/regeneration or any SQL run action.

Open the workspace AI panel

Use the title toolbar AI button or the default Ctrl+F1 / ⌘+F1 binding. The panel sits beside the current workspace.

SqlOtter AI Assistant welcome panel with header controls, chat search, suggested tasks and an empty composer with attachment and model controls.
The existing welcome panel has an empty composer, header and search controls, suggested tasks, an attachment button and a model selector. No prompt, attached context or model answer is shown. Historical screenshot; UI icons have been updated.
  1. On first use, opening the panel can show AI Data Processing Agreement. Read it before deciding whether to continue.
  2. Identify History, New Chat, AI Settings and Close Panel in the header. The AI Assistant title returns to the chat view.
  3. Check the context chip and the model selector before entering a question. Toolbar toggling hides or shows the panel.
  • Opening or hiding the panel is not a SQL execution action. Hiding the panel or switching history is not a reliable way to stop an in-flight request.
  • Bindings can be customized in Settings → Shortcuts. Function keys may require Fn; the source review is not a physical-keyboard acceptance test.

Configure AI Settings before sending

Open Tools → Settings → AI Settings, or use the panel’s AI Settings button.

Complete AI Settings window showing provider URL and protocol, models, Generation, and Safety and Limits.
Complete AI Settings with the API key field showing a placeholder. Model names, Unlimited and the checked restore option are this capture’s selections; see the guide for defaults and operational limits. Historical screenshot; UI icons have been updated.
  1. Check Enable AI features and choose the intended Provider. Fresh preferences select SqlOtter Official; an existing explicit provider choice is retained.
  2. For a direct provider, review Base URL, Full URL, Wire API, API Key and Model. Enter a key only in the approved local configuration and keep it hidden.
  3. Review Generation and Safety and Limits, then save settings only when you intend the change. Saving settings does not test a chat response.
  • Preset provider/model names are configuration suggestions, not proof of access, current availability, price or image support.
  • Settings changes apply to subsequent tasks. Running workers and their retries keep the configuration captured when they started; use Stop if they must end.

Use SqlOtter Official and its separate AI wallet

Official chat requires a server-confirmed supported location, a signed-in SqlOtter account, an available configured offering, a working service and sufficient available AI wallet credit. Mainland China and unknown locations are denied; Hong Kong, Macao and Taiwan are outside this restriction.

  1. Choose SqlOtter Official. Its service endpoint and account authentication are supplied by the application; the official form hides custom URL, API key, Wire API and fallback controls.
  2. Choose a model and an Effort offered by the current service catalog. Launch and opening settings check Official AI availability in the background, even before sign-in. Retry Initial Request repeats that check; Get Models retries discovery. Official choices are hidden while unavailable or unverified, and saved configuration is retained.
  3. For a credit error, open Account → AI wallet recharge or the response’s Recharge AI credit link and inspect the same account’s wallet and request status.
  4. Available credit excludes reservations. The service reserves against its configured input cap and requested output limit before forwarding, then settles under the selected model’s pricing.
  • Desktop subscriptions and free trials grant no AI wallet credit. AI wallet recharge adds prepaid credit; it does not create or extend a desktop subscription or an AI subscription. No free AI quota or fixed model list is promised.
  • The server returns HTTP 403 before catalog, wallet or upstream work when Official AI location is restricted or unknown; new AI-credit checkout is also denied. The gate applies to SqlOtter Official, not direct/custom providers. Existing payment callbacks/reconciliation continue. An empty catalog, unavailable effort, unconfigured upstream or insufficient reservation capacity can also block a request.
  • A failed availability check, restart or API-origin change prevents old model caches from authorizing Official requests. The server independently checks each Official request. The location reflects the request exit IP, which can differ from physical location when a proxy or VPN is used.

Configure a custom or local endpoint

Direct providers use their own endpoint, authentication and billing. Ollama can address an existing local OpenAI-compatible service.

  1. For a normal Chat Completions API root, leave Full URL off. When supplying the complete endpoint, enable Full URL and choose the matching Wire API.
  2. For Responses API, prefer a verified complete endpoint ending in /v1/responses with Full URL enabled. Full URL does not change the payload protocol; Wire API must still be Responses API.
  3. Under Custom OpenAI Compatible, use Add / Remove and the provider detail form for Name, Base URL, Full URL, Wire API, API Key and Models. Enter one model per line and use the default-provider control deliberately.
  4. For an already running local service, verify the exact loopback endpoint and installed model. Local endpoint configuration does not install or start a model server.
  • Custom provider entries need a nonempty endpoint and model list. The active custom route uses the selected/default provider and chosen model; multiple entries are not an automatic cross-provider failover pool.
  • Direct/local requests do not use the SqlOtter Official wallet. A “local” label or the Local only preference alone does not prove that no data leaves the machine; check the actual endpoint and its operator.

Choose a model and reasoning effort

The composer Model menu groups configured providers and models. Its selection is saved for later requests.

  1. Open Model and inspect the provider group as well as the model name. Selecting a different group can also switch the provider, endpoint and default custom entry.
  2. Use Reasoning Effort only when supported. Official choices come from the service catalog; direct providers can expose Provider default, None, Minimal, Low, Medium, High and Extra high or a configured custom value.
  3. After changing a model or effort, check the displayed selection. New tasks use it; already running requests keep their original snapshot.
  • A selected value does not prove that a provider honors it. Official model/effort combinations are validated by the service; direct-provider capabilities and errors remain provider-specific.
  • Run AI Service Benchmark sends actual test requests to configured targets and can incur charges. It is optional and must not be run merely to obtain documentation images.

Review output, timeout, network and daily limits

Generation exposes response language, streaming, timeout, output limit and sampling controls; their effect depends on the chosen service.

  1. Check Language, Stream responses while generating, Request Timeout, Max Tokens, Temperature and Top P. Max Tokens limits generated output, not all input or total billing.
  2. For remote requests, review the application-wide proxy in Advanced Settings. Loopback AI endpoints bypass that proxy; system proxy environment settings are not automatically inherited by this client.
  3. Extra Headers JSON is for approved direct-provider HTTP headers. Official requests ignore these client headers and use managed authentication.
  4. Review Daily Token Limit. The initial preference is 100000; 0 displays Unlimited. The local estimate can warn and still admit a request that would exceed the remaining limit.
  • The local usage counter is an estimate based on message/history/response text and is not the official wallet ledger or an exact provider token meter. It blocks later work once the recorded daily limit is reached; it is not a strict per-request spending cap.
  • Official upstream settings can omit Temperature or Top P; official forwarding can also wait longer than the editable desktop timeout. Large limits and streaming do not guarantee a complete answer or successful settlement.

Check actual context instead of relying on privacy labels

Safety and Limits shows Schema only, Ask each time, Full data and Local only. These settings do not provide uniform enforcement across the reviewed chat and table workflows.

  1. Treat every prompt, SQL selection, file, mention and retained conversation turn as potentially disclosed to the configured endpoint.
  2. Review the table action’s actual sample/statistics scope and object metadata before accepting its dialog. Schema only is not a dependable sample-row exclusion switch for these actions.
  3. Do not rely on Ask each time to show a per-message confirmation, Full data to redact every secret, Local only to block remote traffic, or Enable AI features as a security boundary.
  4. Use only approved nonsensitive context and an approved endpoint. Start a clean conversation when older turns contain material that must not be sent again; withdraw consent to block new AI tasks.
  • No all-path anonymization or guaranteed offline mode is established. Hiding columns can reduce visible sample values but does not remove their metadata or earlier conversation content.
  • Never include passwords, API keys, tokens, customer schemas or personal/business data without authorization. Inspect errors, file names and local paths as well as SQL literals.

Understand table action context and sample rows

Table AI actions build context from the table widget, its metadata and loaded cells. The compact context chip is a summary, not a full payload preview.

  1. Verify the table/connection/database/Schema and action before opening Table → AI. A tree-target action can open that table’s content widget.
  2. For most table actions, up to 20 selected rows are sampled; without a selection the first loaded rows are used. Explain Table uses up to 10; Generate Test Data uses no sample rows.
  3. Samples contain displayed text from visible columns, with the configured NULL display converted to null. All column names, types, comments, keys and hidden-column markers can still appear in metadata.
  4. For workflows that include statistics, the summary considers at most 100 selected or first loaded rows and the first 24 visible columns. It describes the loaded view, not the whole database.
  • Selecting no rows does not mean no data is sent. Selection/sample counts and LOW/HIGH risk labels are descriptive; they are not a guarantee of safe disclosure.
  • The test-data-specific prompt uses structure and generation rules rather than sampled records. Other skills and manually added context can have a wider scope.

Add an explicit object mention with @

Type @ followed by a name to search known connections, databases, tables or fields. A bare @ shows a usage tip.

  1. Search by names/comments, dotted context, Pinyin or ordered scattered characters where available. Check the full connection/database/Schema path in the result.
  2. Use Up/Down then Enter, or click a result, to insert its mention chip. Esc dismisses the popup. While a picker is open, Enter chooses its item instead of sending chat.
  3. Prefer a specific table over a whole database or connection. Database mentions can expand known table structures; connection mentions can include multiple databases and their comments/metadata.
  4. Remove unwanted chips before sending. In the composer, unmodified Backspace/Delete can remove an adjacent mention as a unit; recheck the resulting text.
  • Suggestions combine current-window information and local indexes; they are not a complete live inventory. Resolving context can use cached metadata or read live metadata if available.
  • Omitted Schema components and same-named objects can be ambiguous. A resolved mention is not independent confirmation of the intended live target or its freshness.

A field mention can include its parent table

A field chip identifies the focus field, but the request can contain the parent table’s broader column context.

  1. Choose the exact table/field candidate and inspect its full path. An illustrative path such as @demo.demo_db.demo_orders.order_id is fictional; use the actual picker only in an approved demo.
  2. Assume parent-table column names, types, null/default/key/identity information and comments can accompany the focus field.
  3. When a table is already open, the richer table workflow metadata can be reused without sample rows for the mention itself.
  • Selecting one field is not a one-column disclosure filter. A separate table action, explicit file or earlier history can still add samples or other context.

Use selected SQL or the full editor text

The SQL editor AI actions prefer selected SQL; with no usable selection they use the full editor text.

  1. Select only the intended text before using SQL Optimization, SQL Syntax Checking, SQL Explain, SQL Generation or SQL Fix With Error Message in the editor’s AI menu.
  2. Use SQL Explain /Explain Code for an explanation, SQL Optimization /Optimize SQL for proposed rewrites, and SQL Syntax Checking /Check SQL Syntax for advisory syntax feedback. Compare the original and proposed query for changed predicates, NULL handling, joins and ordering; an optimization claim is not a measured speedup.
  3. Review literals and comments. Related table structure can be appended when the application recognizes names in the text; that recognition is a heuristic.
  4. Treat an editor AI menu action as a send action: it opens or creates the chat command flow and can submit immediately after consent.
  • Selecting SQL is not an execution-target switch. The metadata helper is not a full SQL parser and does not prove complete CTE, quoted-name or cross-schema resolution.
  • AI syntax feedback is a model response, not a server parse, EXPLAIN plan or benchmark. It does not establish schema compatibility, permissions, correctness or execution. Do not run a query or benchmark to create documentation evidence.

Attach only the supported file types

Attach file supports PNG, JPG/JPEG, GIF, BMP, WebP, SQL, JSON and TXT. PDF, Office files, CSV and archives are not supported attachments in this composer.

  1. Choose an existing approved file with Attach file, paste supported local file paths, or paste an image. The composer inserts a file_N.ext token; older @file_N.ext tokens remain recognized.
  2. SQL/JSON/TXT are decoded as UTF-8 with replacement for invalid bytes; only the first 60000 characters captured at attachment time are included, with a truncation marker when longer.
  3. Image bytes are sent as inline image data. Check that the chosen endpoint and model accept images; a file appearing in the input does not establish model compatibility.
  4. Remove unwanted file tokens before sending and verify remaining tokens. Missing, empty or unavailable image files block attachment validation; refresh an attachment if its content changed.
  • The prompt can include the original file name, local path, type, size and captured text, not only the neutral file_N.ext label. Unsupported pasted paths become ordinary text and can disclose paths without uploading file bytes.
  • Pasted images create temporary local PNG files. Removing a token or deleting chat is not a guarantee of file erasure. Provider/API payload limits can still reject a supported extension.

Send, add a newline or queue a follow-up

The composer’s button changes between Send, Stop and Queue steer message according to the visible conversation and input.

SqlOtter AI panel with the prepared two-row test-data request, Generating · 2s elapsed, an empty composer, selected model and red Stop button.
Generation in progress: the prepared prompt names TEST2.MENU_ACCEPT_20261028_R, requests 2 rows with LABEL/NOTE inserts and states Oracle as its target dialect. Generating · 2s elapsed and the red Stop control are visible. Earlier prompt content is outside the viewport. No queued follow-up, Stop click, cancellation, completed answer or billing outcome is shown; the model label does not verify provider availability. Historical screenshot; UI icons have been updated.
  1. Without a suggestion popup, Enter sends and Shift+Enter adds a newline. The visible input counter limits the composer to 10000 characters; it is not a token or full-request counter.
  2. During a response, submitting nonempty text or an active command queues a steer message. Inspect its strip and use Remove queued message if it must not be sent.
  3. Queued messages dispatch in order after the current response ends. Their mention/file context is prepared when queued; do not assume changing the selection later removes it.
  • Enter while a command, skill or mention picker is open selects its candidate. Inspect the chip and message before pressing Enter again.
  • Submitting a message can also start an automatic title-generation request for a new ordinary chat. The title is another AI request and can consume provider or wallet usage.
  • The supplied test-data frame shows Generating · 2s elapsed, an empty composer and the red Stop control. It shows no queued message, Stop click, cancellation result or billing outcome; the elapsed label is a captured UI value, not a benchmark.

Stop processing and interpret request failures

A streamed partial answer is incomplete. Stop is best effort and is distinct from clearing queued work or reversing billing.

  1. To expose Stop during a response, leave the composer without text or an active command, then click Stop. The current handler cancels active panel requests, which can include work in another conversation.
  2. Remove queued steer messages separately before stopping if they must not run. Stop can schedule the next queued message; it does not automatically clear the queue.
  3. Read Request failed, the cancellation note and any partial answer separately. AI service not available. Your message… is local fallback text, not a provider-generated answer.
  4. For official uncertain failures, inspect wallet/request status before manually retrying. Client cancellation does not cancel service settlement, and uncertain usage can remain reserved for review.
  • Official forwarding has no automatic retry or replay. Direct-provider workers can retry certain failures or try configured candidate models; authorization/bad-request/read-timeout failures are treated differently.
  • Changing settings, hiding the panel or switching history is not proof of cancellation. Keep incomplete or failed output out of execution.

Ask AI to explain a table structure

Use Table → AI → AI Explain Table for an approved demonstration table.

  1. Verify the intended table, then review User Request and checked Skills in the action dialog. Explain Table can include up to 10 visible sample rows and a statistics summary.
  2. Ask a focused question, such as “Explain the purpose of fictional demo_orders and list uncertain relationships.” Cancel leaves the request unsent.
  3. Only accept OK when approved to send. It dispatches the selected skill request to chat; it is not a review-only preview button.
  • Interpretation comes from supplied names, comments, keys and samples. It does not prove business meaning, enforced constraints or complete schema coverage.

Draft a focused query

AI Generate Query uses table context; /Generate SQL and the editor’s SQL Generation use the request and available context.

  1. Specify the intended dialect, exact table, output fields, filter and row bound using fictional names. Prefer a read-only question such as “Draft a SELECT for demo_orders with a parameter for order_id.”
  2. Inspect the chosen skill and context before sending. Table Query can include up to 20 visible sample rows and statistics even when you did not select records.
  3. Review the returned command and parameter handling manually. A prompt asking for SELECT/WITH is an instruction to the model, not an executable-code allowlist.
  • No server validation, permission check, result completeness or performance guarantee is established by an AI reply. MongoDB and Redis need their actual document/native syntax rather than an assumed SQL translation.

Review CRUD drafts before any write

AI Generate CRUD SQL creates suggested commands for review; it does not apply database changes.

Partial SqlOtter AI CRUD draft for d1.new_table showing INSERT, SELECT, UPDATE and DELETE fragments, a HIGH-risk warning, assumptions and the generated-only/not-executed footer.
This cropped answer view for d1.new_table shows fragments of an INSERT / SELECT / UPDATE / DELETE draft, a HIGH-risk warning, the one-session sequential-execution assumption and the explicit generated-only / not-executed notice. The prompt begins above the crop; SQL is horizontally truncated and partly obscured by a Replace SqlEditor tooltip. The image does not show a complete request or SQL, validate the statements, or show copy, insertion or execution. Historical screenshot; UI icons have been updated.
  1. Confirm the table, selected rows and checked Skills. State required key predicates and use fictional values; the workflow can include up to 20 visible sample rows and statistics.
  2. Review each INSERT, UPDATE and DELETE independently. Check qualification, identity/default fields, WHERE clauses, row bounds and parameter binding.
  3. Keep the result as a draft until the normal editor target and execution review is complete. A skill labeled safe CRUD or low risk is not proof that a statement is harmless.
  • A generated transaction or rollback suggestion does not guarantee atomicity, rollback support or reversal of committed work on the target engine.
  • The supplied screenshot is a partial answer view for d1.new_table. The request is clipped to its ending; SQL lines are horizontally truncated, and a Replace SqlEditor tooltip covers part of the code. Readable visible text labels the draft HIGH risk, says the statements run in order in one session, and explicitly says SQL generated only; not executed. It is evidence of displayed draft text, not complete SQL, correctness or execution.

Draft test data without inserting it

AI Generate Test Data opens a request/skill form with a Rows control; the first default is 10 and the range is 1–1000.

Complete AI Generate Test Data dialog with Rows 2, an unsent request for fictional acceptance-prefixed rows, the English test-data skill checked, Chinese skill unchecked and Cancel/OK.
Complete request form: Rows is 2; the English test-data skill is checked and the Chinese skill is not. The request asks for fictional rows, an acceptance label prefix and no execution. These are captured choices, not defaults. No target table is shown; the skill description is partly scrolled/truncated. This frame does not show OK being pressed, a request outcome or inserted data.
Partial AI test-data answer showing an INSERT/SELECT/UNION ALL block, acceptance_order_review and acceptance_stock_check labels, and the reference-only footer; SQL is horizontally truncated.
Partial test-data answer: visible INSERT / SELECT / UNION ALL fragments contain acceptance_order_review and acceptance_stock_check. Earlier prompt text is above the viewport, and SQL extends beyond the horizontal view, so the complete statement and values cannot be read. AI-generated, for reference only and answer/code controls are visible. The request says not to execute; no control activation, SQL correctness, two-row insertion, risk rating or execution result is established. Historical screenshot; UI icons have been updated.
  1. Use an already approved fictional table and review Rows, User Request and checked Skills. Saved per-skill choices can change the next form’s initial values.
  2. The dedicated test-data prompt uses column definitions, exact target, insertable-column rules and requested count, without sending sample rows. Generated/key/default columns are omitted by its rules where recognized.
  3. Review a SQL INSERT or MongoDB insertMany draft for actual columns, types, uniqueness, foreign keys and requested row count. Do not press an editor run command just to illustrate the feature.
  • Rows is a generation request, not proof that the model returns that many valid records or that anything was inserted. Custom skills or extra messages can add other context.
  • In the supplied form, Rows is 2, Generate English test data [Test Data] is checked and Generate Chinese test data [Test Data] is unchecked. User Request asks for two fictional rows with an acceptance prefix and forbids execution. These are captured selections, not defaults; the form does not identify the target table. The skill-description pane is only partly visible.
  • The supplied answer view shows an INSERT / SELECT / UNION ALL draft with visible acceptance_order_review and acceptance_stock_check labels. The prompt identifies TEST2.MENU_ACCEPT_20261028_R, requests 2 rows, lists ID/LABEL/NOTE and marks ID for omission by the test-insert rule. Oracle is stated in the prompt, not independently verified from the server. SQL is horizontally truncated and earlier prompt context is above the viewport; do not reconstruct the hidden columns or values.
  • The response is labeled AI-generated, for reference only. The request forbids execution, but this is an instruction, not an execution audit. No copy, insertion, execution, successful two-row insert, risk rating or server readback is established by these supplied frames.

Explain a SQL error with minimal context

Use SQL Fix With Error Message or /Analyze Error for an approved error excerpt and the relevant SQL.

  1. Remove credentials, account names, hostnames, paths and sensitive literals from the excerpt. Include only the statement and target dialect needed to explain the error.
  2. With an editor selection, the AI action uses the selection; otherwise it uses the full text and may append recognized table structure.
  3. Compare the proposed cause and fix with actual server documentation and metadata. A successful AI response is not a successful retry of the original database operation.
  • Do not manufacture a database error or rerun a failed write for a screenshot. A stored safe error is enough for a draft explanation; unavailable evidence stays pending.

Ask for JOIN suggestions with both table contexts

JOIN advice is a focused question through chat or SQL Generation, not a separate confirmed JOIN wizard.

  1. In an approved demo, mention both exact tables and relevant key fields, or provide minimal fictional definitions. Identify expected one-to-one/one-to-many behavior and how unmatched rows should be treated.
  2. Ask for a read-only JOIN draft and an explanation of its ON conditions, duplicate-row risk and NULL behavior. Avoid a whole-connection mention merely to find two tables.
  3. Review actual key uniqueness, enforced relations, namespace qualification and desired cardinality yourself before using the suggestion.
  • Similar field names are not relationship evidence. The model can invent joins or cause duplicated/lost rows; no complete metadata discovery or correct join result is promised.

Analyze rows, draft comments or compare structures

Additional commands use the same consent, provider and human-review boundaries.

  1. Analyze Selected Rows uses the selection or the first loaded rows and builds a limited sample/statistics request. It does not scan the entire database for data-quality guarantees.
  2. AI Generate Field Comment SQL returns comment-change drafts. Comments, samples and metadata can be disclosed; receiving a draft does not update field comments.
  3. Use /Compare Structures or /Compare Mentioned Tables with carefully selected demo objects for advisory differences. Supplied context may be cached or incomplete.
  • AI comparison does not synchronize schemas or establish environment equivalence. These outputs are not accepted migrations, integrity checks or database readback.

Select slash commands and reusable AI skills

Type / for the command picker or $ for skills. These are application prompt tools, not system-shell commands.

  1. Use Up/Down and Enter to choose a candidate, or click it; Esc dismisses the popup. Inspect the selected command chip and add a focused request before sending.
  2. The command list includes Explain Code, Optimize SQL, Check SQL Syntax, Generate SQL, Analyze Error, table workflows and Compact Context. Labels/triggers can follow the UI language.
  3. Table action dialogs let you check one or more Skills; at least one is required. Open Skills Manager to review built-in/custom instructions and their action/type before reuse.
  • A skill is a prompt template with declared actions/risk, not a sandbox or verified SQL policy. Do not put credentials in a custom instruction.
  • With an empty composer and a selected command chip, Backspace/Delete clears that chip. Selecting a command and sending it are distinct in the composer; editor menu actions can dispatch directly.

Review the answer and every code block

AI-generated, for reference only is the panel’s reminder. The response is a draft even when it looks complete.

  1. Wait for generation to end and inspect any failure/cancellation note. Compare the answer with the disclosed objects, files, target summary and your intended question.
  2. Review identifiers, qualification, dialect, parameters, filters, row counts, permissions, ordering and possible data changes in every code block.
  3. Treat model claims such as “valid”, “safe”, “executed” or an exact result count as unverified text unless separate real evidence supports them.
  • Response rendering, a LOW risk badge, syntax highlighting or a local parser check is not server acceptance, data validation or a security review.
  • Regenerate or editing/resending a prior request can make another billable AI request. Do not use those controls to create evidence during this documentation pass.

Copy, insert or replace text deliberately

Copy answer copies raw response text. Supported SQL code blocks can expose Send to SqlEditor and Replace SqlEditor content.

  1. Use the code block’s copy control for a single block or Copy answer for the whole response. Inspect copied text before pasting elsewhere.
  2. Send to SqlEditor inserts at the current cursor, opening the editor when needed. Response-level SQL controls can combine recognized SQL blocks; inspect all of them first.
  3. Replace SqlEditor content overwrites the regular editor text. In Terminal Mode it replaces the current editable command; preserve text you need before using it.
  4. Recheck the editor target after insertion or replacement. Code fencing/language recognition determines which SQL controls appear; use manual copy if the desired control is absent.
  • These controls edit text and do not run SQL. Extra AI SQL risk confirmation applies only for dangerous workspace templates when the local risk classifier requires it; it is not a universal preview for every insert or replacement.
  • The insertion target can follow the currently active database context rather than the object originally mentioned to AI. A target label or confirmation does not establish SQL correctness.

Keep AI generation separate from database execution

An AI request, a received answer and an editor insertion are separate from SQL execution.

  1. Check connection, database, Schema, environment/template, editor-owned target and any target mismatch before using the normal SQL editor execution controls.
  2. Review parameters, permissions, affected scope, transactions and backup/rollback needs under the actual engine’s rules. Use the separate execution guide for that process.
  3. For this documentation walkthrough, stop with an unsent fictional prompt or an already existing safe draft. Do not execute generated SQL, recharge credit or trigger a benchmark to obtain proof.
  • SqlOtter does not automatically execute AI-generated SQL or system commands. A human execution action can still write immediately under the normal editor flow; AI review is not a replacement for that review.

Understand local history and retained context

The application stores AI sessions/messages in a dedicated local SQLite history database; this is distinct from SQL execution history.

  1. Assume saved messages can include user and assistant text, augmented object context, attachment metadata/captured text, command/skill metadata, summaries and usage information.
  2. The history store is application-level rather than an independently isolated per-workspace SQL library. Check the actual conversation before continuing from another workspace.
  3. Restore AI dialog when application launches defaults off. When enabled and the saved session had AI open, session restore can reopen the history ID, draft input and scroll position.
  4. Delete an unwanted conversation through History. Starting New Chat or deleting a token does not erase earlier local messages or recall external submissions.
  • Do not assume encrypted storage, secure erasure, attachment-file deletion or a retention deadline from the UI. Protect the local preferences/history and temporary files under your organization’s policy.
  • Official billing/request records and the upstream provider’s own retention are separate from local chat deletion. Removing local history does not delete either external record.

Compact earlier context without treating it as deletion

Compact Context builds a local abbreviated conversation memory for later requests; it is not another model summary request.

  1. Use /Compact Context for manual compaction when there is enough history. Automatic compaction is triggered by conversation length; the current thresholds are 24 user/assistant messages or 12000 text characters.
  2. Review Auto Compact Keep Recent Messages in AI Settings. The initial choice is 4; manual compaction uses no protected recent-message tail.
  3. A later request can include the compacted memory plus uncompressed earlier turns and their augmented metadata. Use a clean New Chat when previous context must not be reused.
  • Compaction truncates/combines text; it can lose facts or preserve sensitive fragments. It does not delete saved messages, guarantee full-history recall or anonymize data.

Walk through an unsent fictional example

A useful documentation example can stop before any AI request or database write.

  1. Use an already available fictional demo context, or type a plain fictional definition such as demo_orders(order_id, amount). Do not connect to customer systems or create objects for the example.
  2. Compose “Draft a read-only SELECT for fictional demo_orders filtered by an order_id parameter; explain assumptions.” Check model/provider, mentions, files and earlier history.
  3. Stop before Send, Enter, action-dialog OK, Run AI Service Benchmark or any editor run action. An already existing safe answer may be inspected without regenerating, inserting or executing it.
  • If no safe existing result is available, keep result imagery pending. An unsent prompt proves only the visible configuration/context controls, not model output, billing, cancellation or workflow/release acceptance.

What to expect

You can identify the provider, likely disclosure scope, queue/cancellation behavior and manual review controls. A draft or copied/inserted code is not evidence of a database change or correct SQL.

Limits and safety

  • Schema only, Ask each time, Full data, Local only and Enable AI features are not a uniform security boundary in the reviewed flows. No guaranteed all-path redaction, per-message confirmation or offline mode is established.
  • Table actions can include visible sample rows and statistics; a field mention can include parent-table metadata. Whole-database/connection mentions can be much broader, and cached context may be incomplete or stale.
  • Attachments are images plus SQL/JSON/TXT only; text is captured/truncated, original names/paths can be sent, and model image support is not guaranteed. Unsupported pasted paths can still become prompt text.
  • Official wallet credit is separate from desktop access. The service reserves before forwarding; Stop does not guarantee a refund or release of an uncertain reservation. Local daily estimates are not a strict billing cap.
  • AI replies, safety/risk labels, requested row counts and read-only prompt rules are advisory. SQL may be wrong or unsafe; generated SQL/system commands are not automatically executed.
  • Extra insert/replace risk confirmation is conditional on dangerous workspace templates and the local classifier. It is not a universal preview or permission check.
  • Local application history can retain augmented context and file metadata; previous turns or compacted memory can be sent again. Local deletion does not erase external records or guarantee secure erasure.
  • Six supplied images cover AI Settings, an empty welcome panel, a partial HIGH-risk CRUD answer, the test-data request form, generation in progress and a partial test-data answer. Both answer screenshots have incomplete prompt/SQL coverage; they do not establish execution or correctness. Consent, queue/cancellation outcomes, other task results and history states remain text-only. Keyboard/workflow/provider/engine acceptance and an identified release remain pending.

If something goes wrong

  • Panel or service unavailable: check agreement acceptance, actual provider/endpoint/model/authentication, current catalog status and network. A local “AI service not available. Your message…” echo is not a model answer.
  • Official credit or model error: check the same signed-in account, available versus reserved wallet credit, current model/effort and service status. A trial or desktop recharge does not fund AI usage.
  • Custom endpoint 404 or protocol error: verify Base/Full URL and Wire API together; prefer an exact Full URL for Responses. Confirm the selected custom provider and installed local model.
  • Unexpected context: remove broad mentions, selected rows, SQL literals and attachments; inspect parent-table metadata and old turns. Start a clean chat rather than assuming a privacy label removes that content.
  • Attachment rejected or stale: check the supported extension, nonempty readable file, captured text truncation and provider image/payload limits. Reattach changed text; inspect pasted paths.
  • Stop seems ineffective: clear/remove queued messages separately, empty the composer to expose Stop, and inspect other active conversations. Official settlement can continue after client cancellation.
  • Answer or generated code is wrong: retain the draft, check dialect/metadata/keys/parameters manually, and do not run it to repair the documentation example.