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

Method write_alt_record

crates/pg/src/encoder.rs:125–133  ·  view source on GitHub ↗
(
        &mut self,
        ty: &PsqlType,
        value: &ValueWithType<'_, ProductValue>,
    )

Source from the content-addressed store, hash-verified

123 }
124
125 fn write_alt_record(
126 &mut self,
127 ty: &PsqlType,
128 value: &ValueWithType<'_, ProductValue>,
129 ) -> Result<bool, Self::Error> {
130 let json = satn::PsqlWrapper { ty: ty.clone(), value }.to_string();
131 self.encoder.encode_field(&json)?;
132 Ok(true)
133 }
134
135 fn write_record(
136 &mut self,

Callers

nothing calls this directly

Calls 3

OkFunction · 0.50
to_stringMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected