query builder progress
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
#include "ColorEnumTraits.hpp"
|
||||
|
||||
#include "matador/object/object_generator.hpp"
|
||||
|
||||
#include "matador/sql/connection.hpp"
|
||||
|
||||
#include "matador/query/generator.hpp"
|
||||
@@ -20,8 +22,11 @@ class TypeTraitsTestFixture : public QueryFixture
|
||||
public:
|
||||
TypeTraitsTestFixture() {
|
||||
REQUIRE(db.open());
|
||||
const auto obj = matador::object::object_generator::generate<location>(repo, "location");
|
||||
const auto res = query::create()
|
||||
.table<location>("location", repo)
|
||||
.table(obj->name())
|
||||
.columns(obj->attributes())
|
||||
.constraints(obj->constraints())
|
||||
.execute(db);
|
||||
tables_to_drop.emplace("location");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user