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

Function row_columns

nodedb/tests/vector_primary_fast_path.rs:21–30  ·  view source on GitHub ↗
(msg: &tokio_postgres::SimpleQueryMessage)

Source from the content-addressed store, hash-verified

19use common::pgwire_harness::TestServer;
20
21fn row_columns(msg: &tokio_postgres::SimpleQueryMessage) -> Option<Vec<String>> {
22 if let tokio_postgres::SimpleQueryMessage::Row(row) = msg {
23 let cols: Vec<String> = (0..row.columns().len())
24 .map(|i| row.get(i).unwrap_or("").to_string())
25 .collect();
26 Some(cols)
27 } else {
28 None
29 }
30}
31
32#[tokio::test(flavor = "multi_thread", worker_threads = 4)]
33async fn pure_vector_projection_skips_payload_fetch() {

Callers

nothing calls this directly

Calls 5

collectMethod · 0.80
to_stringMethod · 0.80
lenMethod · 0.45
columnsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected