pub fn validate_batch(
expected_version: u32,
events: &[EventEnvelope],
) -> Result<(), AppendError>Expand description
What a batch must be before it reaches the database.
Checked in Rust rather than left to constraint violations, so a caller gets one clear reason instead of whichever index happened to fire first.