Skip to main content

needs_migration

Function needs_migration 

Source
pub fn needs_migration(path: &Path) -> NativeResult<bool>
Expand description

Check if a file needs migration to the current format version

Returns true if the file is in V2 format and needs migration to V3. Returns false if the file is already in V3 format. Returns an error for:

  • V1 format (unsupported, cannot be migrated)
  • Unknown format versions
  • Read/detection errors

§Arguments

  • path - Path to the graph database file

§Returns

  • Ok(true) - File needs migration (V2 -> V3)
  • Ok(false) - File is current version (V3)
  • Err(NativeBackendError) - Unsupported version or detection error