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

Function bind_bool_param

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

Source from the content-addressed store, hash-verified

153
154 #[test]
155 fn bind_bool_param() {
156 let result = bind_and_format(
157 "SELECT * FROM users WHERE active = $1",
158 &[ParamValue::Bool(true)],
159 );
160 assert!(result.contains("active = true"), "got: {result}");
161 }
162
163 #[test]
164 fn no_params_noop() {

Callers

nothing calls this directly

Calls 1

bind_and_formatFunction · 0.85

Tested by

no test coverage detected