r/sqlite • u/innovatorved • 2d ago
I built a free, open-source SQL & database internals guide with an in-browser WASM SQLite 3 Workbench
Hey r/sqlite!
I built SQL in Depth — a free, open-source interactive textbook and playground for SQL & database internals that runs directly in the browser with no signup or local setup needed.
Since this community appreciates SQLite, here's what's built around it:
• In-Browser WASM SQLite 3 Workbench: Write and run real SQLite queries client-side with preloaded datasets, schema inspection, and instant query results.
• Relational Visualizer: Step through how joins, grouping, filtering, and window functions transform tables row by row.
• 36 Interactive Database Internals Simulators: Visually explore B-Trees & B+ Trees, WAL vs rollback journals, query planners, index scans vs full table scans, MVCC, and locking behavior.
• 180 Structured Units: Covers everything from core SQL and schema design to indexing strategies, transactions, and storage engine mechanics.
Live site: https://sql-in-depth.vedgupta.in
GitHub (open-source): https://github.com/innovatorved/sql-in-depth
I'd love any feedback from SQLite folks — especially on SQLite-specific quirks, STRICT tables, WAL mode details, or interactive labs you'd like to see added!
1
u/sereikis 2d ago
for a STRICT-table lab, insert the text '000123' into an ANY column in both ordinary and STRICT tables, then compare the value and typeof(). ordinary ANY converts this to integer 123, while STRICT ANY preserves '000123' as text.
1
u/Discordbothost 2d ago
Lab idea for the primary-key unit: put id 42 in an INTEGER PRIMARY KEY table and an INT PRIMARY KEY table. Compare id and rowid, then run EXPLAIN QUERY PLAN for the same lookup on each.