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

Method try_insert

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

Source from the content-addressed store, hash-verified

87 /// inserting an exact duplicate of an already-present row will return `Ok`.
88 #[track_caller]
89 fn try_insert(&self, row: Self::Row) -> Result<Self::Row, TryInsertError<Self>> {
90 insert::<Self>(row, IterBuf::take())
91 }
92
93 /// Deletes a row equal to `row` from the table.
94 ///

Callers 2

insertMethod · 0.45

Calls 1

takeFunction · 0.85

Tested by 1