implemented prepared statement for postgres and sqlite

This commit is contained in:
2023-12-09 11:08:03 +01:00
parent 8ba70cc79e
commit da423ea8bb
59 changed files with 1769 additions and 314 deletions
+17
View File
@@ -0,0 +1,17 @@
#include "matador/sql/statement_cache.hpp"
namespace matador::sql {
statement &statement_cache::acquire(const std::string &stmt, const connection &conn) {
std::lock_guard<std::mutex> guard(mutex_);
auto key = hash_(stmt);
auto it = statement_map_.find(key);
if (it == statement_map_.end()) {
}
return *it->second.statement_;
}
void statement_cache::release(const statement &stmt) {
}
}