Choose execute-in-cloud or MCP when
- You want the vendor or agent runtime to return rows.
- You already trust that process with a warehouse DSN.
- Unconstrained English-to-SQL is acceptable with human review.
Vendor-authored · architecture only · no unpublished scores
Text-to-SQL products differ on three contracts: whether the model emits SQL, whether the vendor runs the statement, and whether joins can be invented. PrismSQL is a compile-only hosted API. This page does not claim a Spider or BIRD ranking.
There is no published vendor accuracy bake-off for PrismSQL. The table is an architecture split from the hosted implementation: JWT compile API, stored contract, closed Query IR, compiler-owned ranges and ORDER BY, static Shield. It is not a latency or exact-match study.
| Factor | Chat / Copilot SQL | RAG NL2SQL + DSN | MCP database server | PrismSQL |
|---|---|---|---|---|
| Who writes SQL | The model | Often the model or a template over retrieved schema | The model via tools | Deterministic compiler only. Closed Query IR has no SQL and no ON. |
| Warehouse credential | Yours, if you paste a connection later | Typically in the library or vendor cloud | In the MCP host | Never sent to the hosted API |
| What comes back | SQL text | Often rows | Tool results / rows | sql_template + params, rows: [] |
| Joins | Unconstrained unless you prompt otherwise | Retrieved schema; FKs may be inferred | Whatever the connected DB allows | Declared join_paths only. Cosine never becomes ON. |
| Tenancy | Prompt-dependent | App-dependent | App-dependent | Compiler injects JWT isolation from the login, not from the prompt |
Do not treat this table as “PrismSQL is more accurate.” Unknown tables refuse SEMANTIC_UNSUPPORTED. Nested AND/OR in the IR is refused. No SOC 2 claim.
PrismSQL itself is not a pip package. PrismSchema 0.1.0 (Apache-2.0, GitHub) generates the contract JSON from DDL or a local read-only database. It does not emit SQL. Upload that JSON in the dashboard, then call POST /api/prismsql/v1/query/execute.