SqlOtter

AI SQL Assistant for Database Work

Explain structures, SQL or errors, review optimization/syntax suggestions, draft SQL/CRUD/test data and ask for JOIN advice with carefully chosen context.

What can an AI-powered database tool do?

SqlOtter’s optional AI SQL assistant can explain queries, draft SQL and suggest changes with the context you choose to send. Configure a provider and review the generated SQL before you run it.

How it works

Use the workspace AI panel, Table → AI, the SQL editor AI menu, @mentions, /commands and $skills with an approved provider. Inspect the actual request scope and review the answer before copying or inserting it.

  1. Configure AI Settings: Provider, Base URL/Full URL, Chat Completions or Responses Wire API, model/Reasoning Effort, output language, streaming, timeout, proxy and local daily limit. Custom providers use Add/Remove/Set Default; Ollama needs an existing local endpoint/model.
  2. For SqlOtter Official, sign in, choose a current model/Effort and check available AI wallet credit. Get Models refreshes discovery; cached choices are not proof of availability. Desktop subscriptions/trials and AI wallet recharge remain separate.
  3. Official AI requires a server-confirmed supported location; mainland China and unknown locations are denied with HTTP 403 before catalog, wallet or upstream work. Hong Kong, Macao and Taiwan are outside this restriction. Retry Initial Request repeats the check; direct/custom providers are not covered by this Official-only gate.
  4. Read AI Data Processing Agreement and minimize conversation, SQL, connection/database/table/field mentions, sample rows/statistics and attachments. A field mention can include parent-table context; broad mentions can expand many objects.
  5. Ask a focused question or choose Explain Table, Generate Query, Generate CRUD SQL, Generate Test Data, Analyze Rows, Generate Field Comments or structure comparison. The editor also offers SQL Explain, Optimization, Syntax Checking, Generation and Fix With Error Message. These are AI drafts, not server parsing, EXPLAIN plans or benchmarks; table dialog OK and editor AI actions can send directly.
  6. Use Enter to send, Shift+Enter for a newline and picker Up/Down/Enter/Esc to choose or dismiss. During a response, nonempty input queues a follow-up that can send automatically; remove queued messages separately before Stop.
  7. Review each complete answer and code block. Copy answer copies text; Send to SqlEditor inserts at the cursor and Replace SqlEditor content replaces editor text/current Terminal Mode command. Check target/dialect/parameters before a separate execution decision.
  8. Use History/Search chat, Rename/Delete, New Chat and local Compact Context deliberately. Restore AI dialog when application launches is initially off. A safe fictional walkthrough can stop before Send/OK without generating anything. After New Chat, recheck pending composer text, chips and files.

Availability and limits

Current development implementation: Official AI requires a server-confirmed supported location, and provider, account, model and context access vary. Six authentic images illustrate configuration, controls and partial drafts; desktop and release acceptance remain pending.