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

Function search_top_k_param

nodedb-sql/src/dsl_bind.rs:158–165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

156
157 #[test]
158 fn search_top_k_param() {
159 let bound = bind_dsl(
160 "SEARCH v USING VECTOR(ARRAY[1.0, 0.0, 0.0], $1)",
161 &[ParamValue::Int64(5)],
162 )
163 .unwrap();
164 assert!(bound.as_str().contains(", 5)"), "got: {}", bound.as_str());
165 }
166
167 /// String literals that happen to contain `$1` must not be touched
168 /// — the tokenizer has already classified the `$1` inside quotes

Callers

nothing calls this directly

Calls 1

bind_dslFunction · 0.85

Tested by

no test coverage detected