implemented the first version of statement_cache
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
#ifndef CONNECTION_POOL_FIXTURE_HPP
|
||||
#define CONNECTION_POOL_FIXTURE_HPP
|
||||
|
||||
#include "matador/sql/backend_provider.hpp"
|
||||
#include "matador/sql/connection.hpp"
|
||||
#include "matador/sql/interface/connection_impl.hpp"
|
||||
|
||||
#include "../backend/test_backend_service.hpp"
|
||||
|
||||
namespace matador::test::orm {
|
||||
|
||||
class ConnectionPoolFixture {
|
||||
public:
|
||||
ConnectionPoolFixture() {
|
||||
sql::backend_provider::instance().register_backend("noop", std::make_unique<test_backend_service>());
|
||||
|
||||
db = std::make_unique<sql::connection>("noop://noop.db");
|
||||
}
|
||||
~ConnectionPoolFixture() = default;
|
||||
|
||||
protected:
|
||||
std::unique_ptr<sql::connection> db;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif //CONNECTION_POOL_FIXTURE_HPP
|
||||
Reference in New Issue
Block a user