AI SQL Assistant in SaturnSQL

Last updated May 19, 2026 ยท By the SaturnSQL team

Pro plan, currently on the waitlist

The AI assistant ships with the Pro plan, which is in Coming Soon status today. This article describes what to expect when Pro launches. Join the waitlist on the pricing page to be notified.

The SaturnSQL AI assistant is built for one job: making SQL faster for people who already know SQL, and approachable for people who do not. It drafts queries from plain English, explains queries you did not write, and suggests rewrites when something is slow or unclear. It is schema-aware, so it uses your actual tables and columns instead of generic placeholders.

What it does

  • Natural language to SQL โ€” describe what you want ("show me weekly active users by plan over the last 90 days") and get a draft query against your real schema.
  • Explain a query โ€” paste a complex query someone else wrote and get a plain-English breakdown of what each CTE and join is doing.
  • Suggest rewrites โ€” ask the assistant to make a query faster, simpler, or more readable. It returns a rewrite plus the reasoning.
  • Inline completions โ€” as you type, the assistant suggests the next clause or join based on what you have written and your schema.

How "schema-aware" works

When you ask the assistant for SQL, SaturnSQL sends a description of your database structure along with your prompt:

  • Table names
  • Column names and types
  • Primary key and foreign key relationships (when visible)
  • Recently used queries against this database, as examples of how your team writes SQL

What it does not send: row-level data. Your actual user records, transactions, and analytics events stay in your database. The assistant sees the shape of your data, not its contents.

Why this matters: generic AI SQL tools that have not connected to your schema either invent table names or default to a textbook example. Schema-aware assistants use real names, which is the difference between "here is some SQL" and "here is your SQL."

Token allowance and limits

The Pro plan includes a generous monthly token allowance per user, on the order of two million tokens per user per month at launch. In practice, that is enough for hundreds of typical natural-language-to-SQL requests including the schema context.

For most teams this is well above day-to-day usage. If you build something that hammers the assistant programmatically, get in touch and we will work out the right plan. Final allowances will be confirmed when Pro launches.

Best practices for prompting

The assistant is a tool, not a mind reader. A few habits get noticeably better SQL out of it:

  • Name the table or topic โ€” "from the orders table" or "using subscriptions" orients the assistant immediately.
  • State the time window โ€” "in the last 30 days" or "Q1 2026". Without this, the assistant guesses.
  • Say what you want to see โ€” "grouped by plan, sorted by revenue desc" is much better than "by plan."
  • Iterate, do not start over โ€” if the first draft is close but wrong, ask for a tweak ("exclude trial accounts") instead of writing a brand-new prompt.
  • Always run on a small sample first โ€” even with schema awareness, the assistant can write SQL that runs but returns the wrong answer. Sanity-check with a LIMIT or against a known subset.

What it is not good at

Worth knowing the rough edges:

  • Highly specific business logic that lives in tribal knowledge, not in column names ("exclude churn from Q4 because of the data migration") โ€” you need to spell that out.
  • Queries that require deep schema reasoning across 10+ tables. Break the problem into smaller queries.
  • Pricing or revenue formulas where the right answer depends on accounting conventions your team has codified elsewhere.

What ships when Pro launches

At launch, expect:

  • The natural language to SQL chat panel in the editor
  • Explain query and suggest rewrite actions on any saved query
  • Schema-aware context across PostgreSQL, MySQL/MariaDB, SQL Server, and Redshift connections
  • Per-user monthly token allowance

We will update this article with concrete UI details and screenshots when Pro is live.

Related help articles

Join the Pro waitlist