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

Function bind_string_param

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

Source from the content-addressed store, hash-verified

119
120 #[test]
121 fn bind_string_param() {
122 let result = bind_and_format(
123 "SELECT * FROM users WHERE name = $1",
124 &[ParamValue::Text("alice".into())],
125 );
126 assert!(result.contains("name = 'alice'"), "got: {result}");
127 }
128
129 #[test]
130 fn bind_null_param() {

Callers

nothing calls this directly

Calls 1

bind_and_formatFunction · 0.85

Tested by

no test coverage detected