diff --git a/sqlite-bytecode-explorer.docs.md b/sqlite-bytecode-explorer.docs.md new file mode 100644 index 0000000..9890fc5 --- /dev/null +++ b/sqlite-bytecode-explorer.docs.md @@ -0,0 +1 @@ +Visualize and understand the virtual machine instructions SQLite generates for your SQL queries. Enter any SQL statement to see its compiled VDBE (Virtual Database Engine) bytecode with color-coded opcodes, clickable jump targets, and detailed explanations for each instruction. Includes optional schema setup for realistic query plans, an EXPLAIN QUERY PLAN mode, and ten built-in examples covering SELECTs, JOINs, aggregates, subqueries, and DML statements. Powered by SQLite compiled to WebAssembly running entirely in your browser. diff --git a/sqlite-bytecode-explorer.html b/sqlite-bytecode-explorer.html new file mode 100644 index 0000000..effca1e --- /dev/null +++ b/sqlite-bytecode-explorer.html @@ -0,0 +1,972 @@ + + +
+ + +Visualize and understand the virtual machine instructions SQLite generates for your SQL queries
+ +
+ SQLite compiles every SQL statement into a program for its built-in Virtual Database Engine (VDBE).
+ The VDBE is a register-based virtual machine — each instruction (opcode) operates on numbered registers (like r[2])
+ rather than a stack. When you call sqlite3_prepare_v2(), SQLite parses your SQL and generates this bytecode program.
+ Then sqlite3_step() executes it one instruction at a time.
+
+ Use EXPLAIN before any SQL statement to see its bytecode. This tool runs EXPLAIN for you
+ and annotates each opcode with a human-readable explanation.
+