statement binding progress

This commit is contained in:
Sascha Kühl
2025-10-13 16:14:03 +02:00
parent 24842f3313
commit d0e2e4340e
12 changed files with 147 additions and 101 deletions
@@ -7,14 +7,24 @@ statement_proxy::statement_proxy(std::unique_ptr<statement_impl>&& stmt)
void statement_proxy::bind(const size_t pos, const char* value, const size_t size, parameter_binder& bindings) const {
statement_->bind(pos, value, size, bindings);
}
void statement_proxy::bind(const char* value, const size_t size, parameter_binder& bindings) const {
statement_->bind(value, size, bindings);
}
void statement_proxy::bind(const size_t pos, std::string& val, const size_t size, parameter_binder& bindings) const {
statement_->bind(pos, val, size, bindings);
}
void statement_proxy::bind(std::string& val, const size_t size, parameter_binder& bindings) const {
statement_->bind(val, size, bindings);
}
void statement_proxy::reset() const {
statement_->reset();
}
size_t statement_proxy::bind_pos() const {
return statement_->bind_pos();
}
std::string statement_proxy::sql() const {
return statement_->query_.sql;
}