Skip to main content

verify_baseline_schema

Function verify_baseline_schema 

Source
pub fn verify_baseline_schema(dir: impl AsRef<Path>) -> Result<(), MemoryError>
Expand description

Confirm a saved baseline’s schema is compatible with the current build.

Behavior:

  • meta table absent: legacy baseline written by an older raysense; pass silently. Existing readers continue to work; the next save will stamp the current version.
  • meta table present: extract schema_version. Equal to SCHEMA_VERSION passes; any other value fails with MemoryError::SchemaMismatch.
  • meta table present but malformed (missing column, wrong type, no rows): fail with MemoryError::MetaTableMalformed so we never silently accept a broken provenance record.