implemented the first version of statement_cache
This commit is contained in:
@@ -23,7 +23,7 @@ utils::error make_error(error_code ec, const std::string &msg);
|
||||
|
||||
class session final {
|
||||
public:
|
||||
explicit session(sql::connection_pool<sql::connection> &pool);
|
||||
explicit session(sql::connection_pool &pool);
|
||||
|
||||
template<typename Type>
|
||||
[[nodiscard]] utils::result<void, utils::error> attach(const std::string &table_name) const;
|
||||
@@ -129,7 +129,7 @@ private:
|
||||
static query::fetchable_query build_select_query(entity_query_data &&data);
|
||||
|
||||
private:
|
||||
sql::connection_pool<sql::connection> &pool_;
|
||||
sql::connection_pool &pool_;
|
||||
const sql::dialect &dialect_;
|
||||
|
||||
std::unique_ptr<object::schema> schema_;
|
||||
|
||||
Reference in New Issue
Block a user