Constants§
- CREATE_
STATEMENTS - All CREATE TABLE and CREATE INDEX statements in alphabetical order,
used to compute the schema hash. This is the single source of truth —
db.rsiterates this array directly instead of duplicating SQL. - FORGE_
CURRENT_ USER_ VERSION - FORGE_
MAX_ USER_ VERSION - FORGE_
MIN_ USER_ VERSION - Range of valid user_version values for Forge databases.
- FORGE_
V2_ USER_ VERSION - The user_version value for schema v2.
- FORGE_
V3_ USER_ VERSION - The user_version value for schema v3.
- FORGE_
V4_ USER_ VERSION - The user_version value for schema v4.
- FORGE_
V5_ USER_ VERSION - The user_version value for schema v5.
- MIGRATION_
V2_ STATEMENTS - Migration v2 statements — additive tables for experiments, evidence, and exports.
- MIGRATION_
V3_ STATEMENTS - Migration v3 statements — additive raw tool receipt storage.
- REQUIRED_
TABLES - Required tables in a Forge database.
Functions§
- compute_
schema_ hash - Compute the schema hash from the sorted CREATE TABLE statements.
- forge_
schema_ hash - Compile-time schema hash (computed from CREATE_STATEMENTS).