Expand description
SQL statements for Wave 9 operator-control ops (RFC-023 Phase 3.2).
Mirrors ff-backend-postgres/src/operator.rs. SQLite-specific
translations:
jsonb_set(raw_fields, '{k}', to_jsonb($::text))→json_set(raw_fields, '$.k', ?).raw_fieldsis TEXT JSON (JSON1), not JSONB.raw_fields->>'replay_count'→json_extract(raw_fields, '$.replay_count'). Cast to INTEGER happens via SQLite’s implicit numeric coercion inside arithmetic.FOR NO KEY UPDATE/FOR UPDATEare no-ops — the enclosingBEGIN IMMEDIATEholds the RESERVED lock for the full read-modify-write window.ExecutionIdUUIDs are bound as 16-byteBLOBs (seebackend::split_exec_id), not stringified UUIDs as on PG.