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

Method insert

crates/bindings/src/table.rs:64–66  ·  view source on GitHub ↗
(&self, row: Self::Row)

Source from the content-addressed store, hash-verified

62 /// inserting an exact duplicate of an already-present row will not panic.
63 #[track_caller]
64 fn insert(&self, row: Self::Row) -> Self::Row {
65 self.try_insert(row).unwrap_or_else(|e| panic!("{e}"))
66 }
67
68 /// The error type for this table for unique constraint violations. Will either be
69 /// [`UniqueConstraintViolation`] if the table has any unique constraints, or [`Infallible`]

Callers

nothing calls this directly

Calls 1

try_insertMethod · 0.45

Tested by

no test coverage detected