progress on sandbox.cpp

This commit is contained in:
Sascha Kühl 2025-07-03 16:17:53 +02:00
parent 20d6a77275
commit 7a6de4053a
1 changed files with 7 additions and 3 deletions

View File

@ -1,15 +1,19 @@
#include "matador/object/schema.hpp"
#include "matador/logger/log_manager.hpp"
#include "author.hpp"
#include "book.hpp"
using namespace demo;
using namespace matador;
int main() {
object::schema tree;
logger::default_min_log_level(logger::log_level::LVL_DEBUG);
logger::add_log_sink(logger::create_stdout_sink());
object::schema schema;
tree.attach<author>("authors");
tree.attach<book>("books");
auto result = schema.attach<author>("authors")
.and_then([&schema] { return schema.attach<book>("books"); });
}