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
+3 -2
View File
@@ -5,7 +5,6 @@
#include "matador/sql/query_result.hpp"
#include "matador/sql/interface/statement_proxy.hpp"
#include "matador/sql/interface/parameter_binder.hpp"
#include "matador/utils/error.hpp"
#include "matador/utils/result.hpp"
@@ -122,6 +121,8 @@ public:
*/
void reset() const;
[[nodiscard]] std::string sql() const;
private:
template<class Type>
friend class detail::identifier_binder;
@@ -140,7 +141,7 @@ statement &statement::bind(size_t pos, Type &value) {
template<class Type>
statement &statement::bind(const Type &obj) {
statement_proxy_->bind(obj, bindings_);
statement_proxy_->bind(obj, *bindings_);
return *this;
}