MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / decoder

Method decoder

src/sql-server-util/src/desc.rs:125–128  ·  view source on GitHub ↗

Returns a [`SqlServerRowDecoder`] which can be used to decode [`tiberius::Row`]s into [`mz_repr::Row`]s that match the shape of the provided [`RelationDesc`].

(&self, desc: &RelationDesc)

Source from the content-addressed store, hash-verified

123 /// Returns a [`SqlServerRowDecoder`] which can be used to decode [`tiberius::Row`]s into
124 /// [`mz_repr::Row`]s that match the shape of the provided [`RelationDesc`].
125 pub fn decoder(&self, desc: &RelationDesc) -> Result<SqlServerRowDecoder, SqlServerError> {
126 let decoder = SqlServerRowDecoder::try_new(self, desc)?;
127 Ok(decoder)
128 }
129}
130
131impl RustType<ProtoSqlServerTableDesc> for SqlServerTableDesc {

Callers 2

smoketest_decoderFunction · 0.45
testcaseFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected