MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / encode_pk_from_row

Method encode_pk_from_row

nodedb-columnar/src/mutation/engine.rs:256–258  ·  view source on GitHub ↗

Encode a PK value as index bytes. Exposed for callers that need to probe the PK index (e.g. `ON CONFLICT DO UPDATE` routing).

(&self, values: &[Value])

Source from the content-addressed store, hash-verified

254 /// Encode a PK value as index bytes. Exposed for callers that need
255 /// to probe the PK index (e.g. `ON CONFLICT DO UPDATE` routing).
256 pub fn encode_pk_from_row(&self, values: &[Value]) -> Result<Vec<u8>, ColumnarError> {
257 self.extract_pk_bytes(values)
258 }
259
260 // -- Internal helpers --
261

Calls 1

extract_pk_bytesMethod · 0.80

Tested by

no test coverage detected