MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / get_unique_constraint

Method get_unique_constraint

sdks/rust/src/client_cache.rs:532–538  ·  view source on GitHub ↗

Called by autogenerated unique index access methods.

(&self, constraint_name: &'static str)

Source from the content-addressed store, hash-verified

530
531 /// Called by autogenerated unique index access methods.
532 pub fn get_unique_constraint<Col>(&self, constraint_name: &'static str) -> UniqueConstraintHandle<Row, Col> {
533 UniqueConstraintHandle {
534 table_handle: self.clone(),
535 unique_index_name: constraint_name,
536 _phantom: PhantomData,
537 }
538 }
539}
540
541/// A fake implementation of a unique index.

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected