link_cli/engine/validation.rs
1//! Optional serializable point-read validation; scans conservatively cover all rows.
2use std::collections::BTreeSet;
3
4#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]
5pub enum SerializableValidation {
6 /// Abort after any intervening database revision; no per-read bookkeeping.
7 #[default]
8 Revision,
9 /// Validate point dependencies and writes; any scan still checks the revision.
10 ReadSet,
11}
12
13pub(super) struct ReadSet<T> {
14 pub keys: BTreeSet<T>,
15 pub scanned: bool,
16}
17impl<T> Default for ReadSet<T> {
18 fn default() -> Self {
19 Self {
20 keys: BTreeSet::new(),
21 scanned: false,
22 }
23 }
24}