Solutions · Gluesync 2.3

AI as SQL — ask any LLM with Query Forge

You already speak SQL when you need a precise answer. Sometimes you want to ask first.

AI as SQL puts that ask on Query Forge: one jdbc:gluesync:// connection, your identity, a normal result row with an answer and an optional SQL draft. You review. You run.

Not another chatbot bolted onto sync. Not a free pass past your permissions.

Coming in Gluesync 2.3

Query Forge · gluesync.ai Authenticated
SELECT answer, proposed_sql,
       citations, conversation_id
FROM gluesync.ai
WHERE question = ?;
answerproposed_sql
Here is what I found…SELECT …

Review proposed_sql before you run it.

The problem

The question is conversational. The work still belongs in SQL.

DataGrip, DBeaver, JDBC scripts, and Query Forge already carry identity and reach federated schemas. AI as SQL keeps the question and its inspectable result on that governed wire.

The approach

Level up any database query engine: natural language in, generated SQL out — your queries have never been so powerful.

Query the gluesync.ai virtual catalog. Query Forge returns a structured ResultSet under the caller’s PAT and RBAC, using the model provider configured in your BYO vault.

Eight outcomes · One JDBC surface

From a natural-language question to a reviewable next query.

01

Ground AI in any BI, ETL or workflow

Anything that can open a JDBC connection can invoke an LLM as a normal SELECT: Tableau, Power BI and Looker reports, Talend, Informatica and Pentaho jobs, dbt models, Airflow and scheduler steps. Warehouse-native AI functions only reach the data already loaded in that warehouse — this one runs an AI step inside the ETL processes you already have, across the federated estate, without exporting rows to a separate AI service.

any JDBC client
02

Show the SQL — don’t run it yet

Read proposed_sql as a normal result column and inspect the statement before choosing to execute it. The draft is never run automatically.

proposed_sql
03

Get an answer in natural language

Receive answer and citations together as an inspectable work product: a plain-language explanation with the references used to build it.

answer + citations
04

Ask → review → run

Keep a visible trust loop. AI drafts the next SQL statement; you review it and own the side effect of running it.

review before run
05

Stay in DataGrip or DBeaver

Use the same Query Forge connection as your federated schemas. Query Studio AI remains a separate door for teams working in the Gluesync editor.

jdbc:gluesync://
06

Script it and demo it

Parameterize WHERE question = ? in JDBC scripts, audited jobs, and playbooks authenticated with the caller’s Personal API Token.

WHERE question = ?
07

Federate, then ask on the same wire

Combine Query Forge JOINs with FROM gluesync.ai. In Gluesync 2.3, name-in-question grounding matches a whole table, schema, agent, or database name, case-insensitively — never a substring. A unique match grounds the question; a stronger score wins; equal-strength collisions fail closed; no match leaves grounding empty. Explicit pipeline_id and agent_id always win. BYO provider_id selection remains available.

FROM gluesync.ai
08

Follow up in the same session

Pass conversation_id into the next question to continue the thread while keeping each response structured as a ResultSet.

conversation_id

What does not change

Your infrastructure and access model stay in force.

  • BYO modelsProvider credentials stay in the AI Studio vault.
  • Caller PAT + RBACEvery request carries the JDBC caller’s identity and permissions.
  • Read-only MCPTool access remains on the governed read-only path.
  • Review before runproposed_sql is returned and never auto-runs.

FAQ

Frequently asked questions

Answers about asking natural-language questions through Query Forge and reviewing generated SQL before it runs.

What is AI as SQL in Gluesync?

AI as SQL lets a JDBC client send a natural-language question to the gluesync.ai virtual catalog and receive a structured ResultSet with an answer and an optional SQL draft.

Does AI as SQL automatically execute generated SQL?

No. proposed_sql is returned as a reviewable result column and is never run automatically; the caller decides whether to execute it.

What does an AI as SQL result contain?

The ResultSet includes an answer, citations, an optional SQL draft, and a conversation_id for follow-up questions in the same session.

Can AI as SQL work from existing SQL tools and BI workflows?

Yes. It uses the Query Forge JDBC connection, so it works from DataGrip, DBeaver, JDBC scripts, and other clients that already speak JDBC — including BI and ETL tools.

Is AI as SQL available today?

No. AI as SQL is coming with Gluesync 2.3. Teams can book a demo or request early access to preview the workflow.

Gluesync 2.3

Ask Query Forge before you write the next query.

AI as SQL is coming with Gluesync 2.3. Preview this new SQL workflow with our team.