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

Method updateParameter

src/main/prepared_statement.cpp:88–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88void PreparedStatement::updateParameter(const std::string& name, Value* value) {
89 DASSERT(parameterMap.contains(name));
90 validateParam(name, value, parameterMap.at(name).get());
91 *parameterMap.at(name) = std::move(*value);
92}
93
94void PreparedStatement::addParameter(const std::string& name, Value* value) {
95 parameterMap.insert({name, std::make_shared<Value>(*value)});

Callers 1

bindParametersNoLockFunction · 0.80

Calls 3

validateParamFunction · 0.85
containsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected