added data binding traits

This commit is contained in:
2023-12-11 17:20:42 +01:00
parent 8ad13076c8
commit 1c92e07173
17 changed files with 378 additions and 146 deletions
+3 -2
View File
@@ -14,14 +14,15 @@ class connection;
struct cache_info
{
std::unique_ptr<statement> statement_;
statement statement_;
// std::unique_ptr<statement> statement_;
size_t connection_id_;
};
class statement_cache
{
public:
statement& acquire(const std::string &stmt, const connection &conn);
statement& acquire(query_context &&context, const connection &conn);
void release(const statement &stmt);
private: