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

Function bind_select_where

nodedb-sql/src/params.rs:112–118  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

110
111 #[test]
112 fn bind_select_where() {
113 let result = bind_and_format(
114 "SELECT * FROM users WHERE id = $1",
115 &[ParamValue::Int64(42)],
116 );
117 assert!(result.contains("id = 42"), "got: {result}");
118 }
119
120 #[test]
121 fn bind_string_param() {

Callers

nothing calls this directly

Calls 1

bind_and_formatFunction · 0.85

Tested by

no test coverage detected