# Syntaqlite Playground

Parse, format, validate, and tokenize SQLite SQL in the browser via syntaqlite + Pyodide

Loading Pyodide & syntaqlite...
SQL to format select a, b, c from users where id = 1 and status = 'active' order by created_at desc limit 10
Keyword case
Line width
Indent
Semicolons
Examples:

### Formatted output

Results will appear here
SQL to parse SELECT id, name FROM users WHERE active = 1
Examples:

### AST

Results will appear here

### JSON

Results will appear here
SQL to validate SELECT id, name FROM usr WHERE active = 1
Schema (JSON array of tables) [{"name": "users", "columns": ["id", "name", "active"]}, {"name": "posts", "columns": ["id", "user_id", "title", "body"]}]
Each table: {"name": "table_name", "columns": ["col1", "col2", ...]}
Examples:

### Diagnostics

Results will appear here

### JSON

Results will appear here
SQL to tokenize SELECT id, name FROM users WHERE id = 1 -- get user
Examples:

### Tokens

Results will appear here

### JSON

Results will appear here
About: This playground runs syntaqlite entirely in your browser using Pyodide. Syntaqlite is a parser, formatter, validator, and language server for SQLite SQL, built on SQLite's own grammar and tokenizer.