Skip to content

How SQL Pre-flight Check works

Paste a migration before you run it in the Supabase SQL editor and get a plain-language review. The headline check: a table created in the public schema that never gets enable row level security, which in Supabase leaves it reachable through the anon/public API. It also flags destructive statements (truncate, an unguarded drop, a delete or update with no where), non-idempotent create/drop (re-running will error), and over-permissive policies using (true). Every finding for a missing RLS table comes with a copy-ready alter statement. It is a heuristic, not a linter, and runs entirely in your browser.

Built on the same quote-aware tokenizer as the other SQL tools, so a keyword inside a string or comment is never mistaken for real SQL. No network, nothing uploaded.

Questions

What is the RLS check about?
In Supabase, a table in the public schema is reachable through the auto-generated anon/public API. If you forget `enable row level security`, anyone with the anon key can read or write it. This tool flags every public table your script creates but never RLS-enables, and gives you the exact alter statement to fix it.
Does it actually run my SQL?
No. Nothing is executed and nothing is uploaded. It tokenizes the text in your browser and applies heuristics, so it is safe for SQL you have not run yet.
Is it a substitute for reviewing the SQL?
No. It catches the common footguns (RLS gaps, destructive statements, permissive policies, non-idempotent DDL) but it is a heuristic, not a full linter or a security audit.
What counts as destructive?
A drop (worse without `if exists`), a truncate, and a delete or update with no where clause, anything that can wipe or rewrite data when you did not mean to.

More Text & Data tools

All the tools · How to check that nothing is sent

SQL Pre-flight Check, catch RLS gaps before you run it | Only in the Tab