MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / lbug_prepared_statement_bind_value

Function lbug_prepared_statement_bind_value

src/c_api/prepared_statement.cpp:279–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277}
278
279lbug_state lbug_prepared_statement_bind_value(lbug_prepared_statement* prepared_statement,
280 const char* param_name, lbug_value* value) {
281 try {
282 auto value_ptr = std::make_unique<Value>(*static_cast<Value*>(value->_value));
283 lbug_prepared_statement_bind_cpp_value(prepared_statement, param_name,
284 std::move(value_ptr));
285 return LbugSuccess;
286 } catch (Exception& e) {
287 return LbugError;
288 }
289}

Callers 2

TEST_FFunction · 0.85
TEST_FFunction · 0.85

Tested by 2

TEST_FFunction · 0.68
TEST_FFunction · 0.68