You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/bindings/README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -378,9 +378,9 @@ ctx.db.person().ssn()
378
378
-[`UniqueColumn::find`]
379
379
-[`UniqueColumn::delete`]
380
380
-[`UniqueColumn::update`]
381
-
<!-- TODO: "current limitations" try_update-->
381
+
-[`UniqueColumn::try_update`]
382
382
383
-
Notice that updating a row is only possible if a row has a unique column -- there is no `update` method in the base [`Table`] trait. SpacetimeDB has no notion of rows having an "identity" aside from their unique / primary keys.
383
+
Notice that updating a row is only possible if a row has a unique column -- there is no `update`or `try_update`method in the base [`Table`] trait. SpacetimeDB has no notion of rows having an "identity" aside from their unique / primary keys.
384
384
385
385
The `#[primary_key]` annotation implies `#[unique]` annotation, but avails additional methods in the [client]-side SDKs.
0 commit comments