backend tests progress
This commit is contained in:
@@ -23,7 +23,6 @@ add_executable(tests QueryBuilderTest.cpp
|
||||
models/person.hpp
|
||||
AnyTypeToVisitorTest.cpp
|
||||
ColumnTest.cpp
|
||||
StatementCacheTest.cpp
|
||||
models/coordinate.hpp
|
||||
models/location.hpp
|
||||
models/optional.hpp
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
#include <catch2/catch_test_macros.hpp>
|
||||
|
||||
#include "matador/sql/connection_info.hpp"
|
||||
#include "matador/sql/connection_pool.hpp"
|
||||
#include "matador/sql/session.hpp"
|
||||
#include "matador/sql/statement_cache.hpp"
|
||||
|
||||
using namespace matador;
|
||||
|
||||
TEST_CASE("Acquire prepared statement", "[statement cache]") {
|
||||
sql::statement_cache cache;
|
||||
sql::connection_pool<sql::connection> pool("sqlite://sqlite.db", 4);
|
||||
|
||||
sql::session s(pool);
|
||||
auto conn = pool.acquire();
|
||||
|
||||
std::string sql = R"(SELECT * FROM person WHERE name = 'george')";
|
||||
// auto &stmt = cache.acquire(sql, *conn);
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user