enabled backend tests for postgres (doesn't compile)
This commit is contained in:
parent
55f9f8cf67
commit
42acaf24ce
|
|
@ -18,7 +18,7 @@ set(SOURCES
|
|||
|
||||
set(LIBRARY_TARGET matador-postgres)
|
||||
|
||||
#add_subdirectory(test)
|
||||
add_subdirectory(test)
|
||||
|
||||
add_library(${LIBRARY_TARGET} MODULE ${SOURCES} ${HEADER})
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
#ifndef MATADOR_QUERY_FIXTURE_HPP
|
||||
#define MATADOR_QUERY_FIXTURE_HPP
|
||||
|
||||
#include "matador/object/schema.hpp"
|
||||
|
||||
#include "matador/sql/connection.hpp"
|
||||
#include "matador/sql/schema.hpp"
|
||||
|
||||
#include "connection.hpp"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
#include "catch2/catch_test_macros.hpp"
|
||||
|
||||
#include "matador/sql/column_definition.hpp"
|
||||
#include "matador/sql/condition.hpp"
|
||||
#include "matador/sql/query.hpp"
|
||||
#include "matador/object/attribute_definition.hpp"
|
||||
|
||||
#include "matador/query/condition.hpp"
|
||||
#include "matador/query/query.hpp"
|
||||
|
||||
#include "QueryFixture.hpp"
|
||||
|
||||
|
|
@ -13,9 +14,9 @@
|
|||
|
||||
using namespace matador::sql;
|
||||
using namespace matador::test;
|
||||
using namespace matador::query;
|
||||
|
||||
TEST_CASE_METHOD(QueryFixture, "Create table with foreign key relation", "[query][foreign][relation]")
|
||||
{
|
||||
TEST_CASE_METHOD(QueryFixture, "Create table with foreign key relation", "[query][foreign][relation]") {
|
||||
schema.attach<airplane>("airplane");
|
||||
schema.attach<flight>("flight");
|
||||
auto res = query::create()
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef MATADOR_SESSION_FIXTURE_HPP
|
||||
#define MATADOR_SESSION_FIXTURE_HPP
|
||||
|
||||
#include "matador/sql/session.hpp"
|
||||
#include "matador/orm/session.hpp"
|
||||
|
||||
#include "connection.hpp"
|
||||
|
||||
|
|
@ -16,8 +16,8 @@ public:
|
|||
|
||||
protected:
|
||||
sql::connection_pool<sql::connection> pool;
|
||||
sql::session ses;
|
||||
std::stack <std::string> tables_to_drop;
|
||||
orm::session ses;
|
||||
|
||||
private:
|
||||
void drop_table_if_exists(const std::string &table_name) const;
|
||||
|
|
|
|||
Loading…
Reference in New Issue