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

Method parse_update

sdks/rust/src/spacetime_module.rs:95–101  ·  view source on GitHub ↗
(update: ws::v2::TransactionUpdate)

Source from the content-addressed store, hash-verified

93 ) -> <Self::Module as SpacetimeModule>::AppliedDiff<'_>;
94
95 fn parse_update(update: ws::v2::TransactionUpdate) -> crate::Result<Self> {
96 Self::try_from(update).map_err(|source| {
97 InternalError::failed_parse(std::any::type_name::<Self>(), "TransactionUpdate")
98 .with_cause(source)
99 .into()
100 })
101 }
102
103 /// Parse `rows` into a `DbUpdate`, treating every row mentioned in `rows` as an insert.
104 fn parse_initial_rows(rows: ws::v2::QueryRows) -> crate::Result<Self>;

Callers

nothing calls this directly

Calls 1

with_causeMethod · 0.80

Tested by

no test coverage detected