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

Function bind_insert_values

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

Source from the content-addressed store, hash-verified

144
145 #[test]
146 fn bind_insert_values() {
147 let result = bind_and_format(
148 "INSERT INTO users (id, name) VALUES ($1, $2)",
149 &[ParamValue::Int64(1), ParamValue::Text("eve".into())],
150 );
151 assert!(result.contains("1, 'eve'"), "got: {result}");
152 }
153
154 #[test]
155 fn bind_bool_param() {

Callers

nothing calls this directly

Calls 1

bind_and_formatFunction · 0.85

Tested by

no test coverage detected