110545 {
110546 const string digraph_format = R"(
110547digraph G {
110548 node [shape=box, style=rounded, fontname="Courier New", fontsize=10];
110549%s
110550%s
110551}
110552 )";
110553
110554 vector<string> nodes;
110555 vector<string> edges;
110556
110557 const string node_format = R"( node_%d_%d [label="%s"];)";
110558
110559 for (
idx_t y = 0; y < root.height; y++) {
110560 for (
idx_t x = 0; x < root.width; x++) {
110561 auto node = root.GetNode(x, y);
110562 if (!node) {
110563 continue;
110564 }
110565
110566
110567 vector<string> body;
110568 body.push_back(node->name);
110569 for (auto &item : node->extra_text) {
110570 auto &key = item.first;
110571 auto &value_raw = item.second;
110572
110573 auto value = QueryProfiler::JSONSanitize(value_raw);
110575 }
110577
110578
110579 for (auto &coord : node->child_positions) {
110580 edges.push_back(
StringUtil::Format(
" node_%d_%d -> node_%d_%d;", x, y, coord.x, coord.y));
110581 }
110582 }
110583 }
static string Format(const string fmt_str, ARGS... params)
Format a string using printf semantics.
Definition duckdb.hpp:4002
static DUCKDB_API string Join(const vector< string > &input, const string &separator)
Join multiple strings into one string. Components are concatenated by the given separator.
Definition duckdb.cpp:109497
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237