fixed linux build for relation completer
This commit is contained in:
+4
-4
@@ -74,7 +74,7 @@ struct profile {
|
||||
unsigned int id{};
|
||||
std::string first_name;
|
||||
std::string last_name;
|
||||
matador::object::object_ptr<user> user;
|
||||
matador::object::object_ptr<demo::user> user;
|
||||
|
||||
template<typename Operator>
|
||||
void process(Operator &op) {
|
||||
@@ -88,7 +88,7 @@ struct profile {
|
||||
struct user {
|
||||
unsigned int id{};
|
||||
std::string username;
|
||||
matador::object::object_ptr<profile> profile;
|
||||
matador::object::object_ptr<demo::profile> profile;
|
||||
|
||||
template<typename Operator>
|
||||
void process(Operator &op) {
|
||||
@@ -137,7 +137,7 @@ int main() {
|
||||
// has_many_to_many (with join columns first)
|
||||
object::schema schema;
|
||||
|
||||
auto result = schema.attach<ingredient>("ingredients")
|
||||
auto result = schema.attach<demo::ingredient>("ingredients")
|
||||
.and_then([&schema] { return schema.attach<recipe>("recipes"); });
|
||||
|
||||
schema.dump(std::cout);
|
||||
@@ -146,7 +146,7 @@ int main() {
|
||||
// has_many_to_many (with join columns last)
|
||||
object::schema schema;
|
||||
|
||||
auto result = schema.attach<recipe>("recipes")
|
||||
auto result = schema.attach<demo::recipe>("recipes")
|
||||
.and_then([&schema] { return schema.attach<ingredient>("ingredients"); });
|
||||
|
||||
schema.dump(std::cout);
|
||||
|
||||
Reference in New Issue
Block a user