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

Method validate_constraints

src/sql/src/session/vars.rs:354–360  ·  view source on GitHub ↗
(&self, val: &dyn Value)

Source from the content-addressed store, hash-verified

352 }
353
354 fn validate_constraints(&self, val: &dyn Value) -> Result<(), VarError> {
355 if let Some(constraint) = &self.definition.constraint {
356 constraint.check_constraint(self, self.value_dyn(), val)
357 } else {
358 Ok(())
359 }
360 }
361}
362
363impl Var for SessionVar {

Callers 4

checkMethod · 0.80
setMethod · 0.80
set_defaultMethod · 0.80
parseMethod · 0.80

Calls 2

check_constraintMethod · 0.80
value_dynMethod · 0.80

Tested by

no test coverage detected