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
- .env InspectorInspect, mask, and convert env files
- JSONPath ExplorerPull a value out of JSON by path
- cURL → fetchConvert curl commands to fetch()
- Markdown PreviewerLive GitHub-flavored markdown
- JSON FormatterValidate and pretty-print
- Base64Encode and decode
- Diff CheckerCompare two text blocks
- Word CountCount, readability, stats
- TimestampUnix, ISO 8601, relative time
- Hash GeneratorSHA-1, SHA-256, SHA-512
- URL EncoderEncode, decode, parse URLs
- Text CaseUPPER, lower, Title, camelCase, more
- Character EntitiesHTML entities, Unicode, ASCII lookup
- JSON to TypeScriptGenerate TypeScript interfaces from JSON
- JWT DecoderInspect JSON Web Tokens
- Page WeightWeigh a page: bytes, grade, Core Web Vitals, HAR diff
- SQL Viewer & CopyOpen a .sql file, read it, copy it
- SQL Formatter & MinifyBeautify or compact SQL
- SQL SplitterSplit a migration into statements
- Base ConverterBinary, octal, decimal, hex, bitwise
- Unicode InspectorCode points, bytes, invisible characters