Function apply_view_updates

Source
pub fn apply_view_updates<T: Materialization + 'static>(
    metadata: &mut GeneralViewMetadata<T>,
    updates: Vec<ViewUpdate<T>>,
) -> Result<(), Error>
Expand description

Applies a sequence of updates to view metadata

This function processes each update in order, modifying the view metadata accordingly. Updates can include:

  • Format version changes
  • UUID assignments
  • Schema modifications
  • Location and property updates
  • Version management

§Type Parameters

  • T - The materialization type for the view, must implement Materialization + ’static

§Arguments

  • metadata - Mutable reference to view metadata to modify
  • updates - Vector of updates to apply

§Returns

  • Ok(()) if all updates were applied successfully
  • Err(Error) if any update failed to apply