36 template <
bool readOnlyTables>
37 class SerialisationStream {
43 using RO = std::conditional_t<readOnlyTables, const A, A>;
46 std::vector<std::string> relTypes,
size_t auxArity = 0)
57 const std::map<std::string, std::string>& rwOperation)
59 std::string parseErrors;
61 assert(parseErrors.size() == 0 &&
"Internal JSON parsing failed.");
75 auto&& relInfo =
types[
"relation"];
76 arity =
static_cast<size_t>(relInfo[
"arity"].long_value());
79 assert(relInfo[
"types"].is_array());
80 auto&& relTypes = relInfo[
"types"].array_items();
84 auto&&
type = relTypes[
i].string_value();
85 assert(!
type.empty() &&
"malformed types tag");