MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / bump

Method bump

src/repr/src/relation.rs:778–784  ·  view source on GitHub ↗

Returns an instance of [`RelationVersion`] which is "one" higher than `self`.

(&self)

Source from the content-addressed store, hash-verified

776
777 /// Returns an instance of [`RelationVersion`] which is "one" higher than `self`.
778 pub fn bump(&self) -> Self {
779 let next_version = self
780 .0
781 .checked_add(1)
782 .expect("added more than u64::MAX columns?");
783 RelationVersion(next_version)
784 }
785
786 /// Consume a [`RelationVersion`] returning the raw value.
787 ///

Callers 5

add_columnMethod · 0.45
drop_columnMethod · 0.45
applyMethod · 0.45
apply_replacementMethod · 0.45

Calls 3

RelationVersionClass · 0.85
expectMethod · 0.80
checked_addMethod · 0.45

Tested by

no test coverage detected