19 lines
458 B
C++
19 lines
458 B
C++
#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() {
|
|
logger::default_min_log_level(logger::log_level::LVL_DEBUG);
|
|
logger::add_log_sink(logger::create_stdout_sink());
|
|
|
|
object::schema schema;
|
|
|
|
auto result = schema.attach<author>("authors")
|
|
.and_then([&schema] { return schema.attach<book>("books"); });
|
|
|
|
} |