Struct mz_sql::query_model::dot::DotGenerator
source · struct DotGenerator<'a> {
output: String,
indent: u32,
expr_humanizer: &'a dyn ExprHumanizer,
with_types: bool,
}
Expand description
Generates a graphviz graph from a Query Graph Model, defined in the DOT language. See https://graphviz.org/doc/info/lang.html.
Fields§
§output: String
§indent: u32
§expr_humanizer: &'a dyn ExprHumanizer
§with_types: bool
Implementations§
source§impl<'a> DotGenerator<'a>
impl<'a> DotGenerator<'a>
fn new(expr_humanizer: &'a dyn ExprHumanizer, with_types: bool) -> Self
sourcefn derive_required_attributes(&self, model: &mut Model, start_box: BoxId)
fn derive_required_attributes(&self, model: &mut Model, start_box: BoxId)
Derive attributes required for rendering the given Model
.
sourcefn generate(self, model: &mut Model, label: &str) -> Result<String, Error>
fn generate(self, model: &mut Model, label: &str) -> Result<String, Error>
Generates a graphviz graph for the given model, labeled with label
.
sourcefn generate_subgraph(
self,
model: &mut Model,
start_box: BoxId,
label: &str
) -> Result<String, Error>
fn generate_subgraph(
self,
model: &mut Model,
start_box: BoxId,
label: &str
) -> Result<String, Error>
Generates a graphviz graph for the given subgraph of the model, labeled with label
.
fn get_box_title(b: &QueryBox) -> &'static str
fn get_box_head(&self, b: &QueryBox) -> String
sourcefn add_correlation_info(
&mut self,
correlation_info: BTreeMap<QuantifierId, HashSet<ColumnReference>>
)
fn add_correlation_info(
&mut self,
correlation_info: BTreeMap<QuantifierId, HashSet<ColumnReference>>
)
Adds red arrows from correlated quantifiers to the sibling quantifiers they are correlated with.
fn get_quantifier_alias(q: &Quantifier) -> String
fn inc(&mut self)
fn dec(&mut self)
fn new_line(&mut self, s: &str)
fn end_line(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for DotGenerator<'a>
impl<'a> !Send for DotGenerator<'a>
impl<'a> !Sync for DotGenerator<'a>
impl<'a> Unpin for DotGenerator<'a>
impl<'a> !UnwindSafe for DotGenerator<'a>
Blanket Implementations§
source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
source§fn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
See
RustType::from_proto
.source§fn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
See
RustType::into_proto
.