finished postgres fetch
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include <catch2/catch_test_macros.hpp>
|
||||
#include <catch2/generators/catch_generators.hpp>
|
||||
|
||||
#include <matador/sql/condition.hpp>
|
||||
#include <matador/sql/session.hpp>
|
||||
@@ -66,7 +67,11 @@ TEST_CASE("Create and drop table statement with foreign key", "[session record]"
|
||||
}
|
||||
|
||||
TEST_CASE("Execute insert record statement", "[session record]") {
|
||||
connection_pool<connection> pool("sqlite://sqlite.db", 4);
|
||||
auto dns = GENERATE(as<std::string>{},
|
||||
"sqlite://sqlite.db",
|
||||
"postgres://test:test123@127.0.0.1:5432/matador_test" );
|
||||
|
||||
connection_pool<connection> pool(dns, 4);
|
||||
session s(pool);
|
||||
|
||||
auto res = s.create()
|
||||
|
||||
Reference in New Issue
Block a user