Skip to main content

Module codegen

Module codegen 

Source
Expand description

AST-to-VDBE bytecode compilation (§10.6).

Translates parsed SQL statements into VDBE register-based instructions using the ProgramBuilder from fsqlite-types. Handles SELECT, INSERT, UPDATE, and DELETE with correct opcode patterns matching C SQLite behavior.

Structs§

CodegenContext
Configuration for the code generator.
ColumnInfo
Column metadata needed by the code generator.
IndexSchema
Index metadata needed for codegen (index-scan SELECT).
TableSchema
Minimal table schema needed by the code generator.

Enums§

CodegenError
Errors during code generation.

Functions§

codegen_delete
Generate VDBE bytecode for a DELETE statement.
codegen_insert
Generate VDBE bytecode for an INSERT statement.
codegen_select
Generate VDBE bytecode for a SELECT statement.
codegen_update
Generate VDBE bytecode for an UPDATE statement.