MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / add

Method add

nodedb-crdt/src/constraint.rs:74–76  ·  view source on GitHub ↗

Add a constraint.

(&mut self, constraint: Constraint)

Source from the content-addressed store, hash-verified

72
73 /// Add a constraint.
74 pub fn add(&mut self, constraint: Constraint) {
75 self.constraints.push(constraint);
76 }
77
78 /// Add a UNIQUE constraint.
79 pub fn add_unique(&mut self, name: &str, collection: &str, field: &str) {

Callers 9

avx512Function · 0.45
avx2Function · 0.45
neonFunction · 0.45
ternary_dot_avx512Function · 0.45
ternary_dot_neonFunction · 0.45
add_uniqueMethod · 0.45
add_foreign_keyMethod · 0.45
add_bitemporal_fkMethod · 0.45
add_not_nullMethod · 0.45

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected