finished statement cache class

This commit is contained in:
2025-08-05 19:30:40 +02:00
parent 31964e55c1
commit 35fad9f47c
13 changed files with 410 additions and 74 deletions
@@ -16,11 +16,11 @@ public:
virtual utils::result<std::unique_ptr<query_result_impl>, utils::error> fetch(interface::parameter_binder& bindings) = 0;
template<class Type>
void bind(const Type &obj, const interface::parameter_binder& bindings) {
void bind(const Type &obj, interface::parameter_binder& bindings) {
statement_->bind_object(obj, bindings);
}
template<typename Type>
void bind(size_t pos, Type &value, const interface::parameter_binder& bindings) {
void bind(size_t pos, Type &value, interface::parameter_binder& bindings) {
statement_->bind(pos, value, bindings);
}
void bind(size_t pos, const char *value, size_t size, interface::parameter_binder& bindings) const;
@@ -28,6 +28,8 @@ public:
void reset() const;
[[nodiscard]] std::string sql() const;
[[nodiscard]] std::unique_ptr<utils::attribute_writer> create_binder() const;
protected: