query builder progress

This commit is contained in:
Sascha Kühl
2025-12-03 16:18:03 +01:00
parent bfbbd4c589
commit 19eb54df8d
11 changed files with 360 additions and 192 deletions
+6 -1
View File
@@ -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");
}