Documentation
¶
Overview ¶
Package dot generates Graphviz DOT source text for a built plan without depending on a Graphviz runtime.
This package is the single source of truth for graph construction: the graphviz package renders svg/png by generating this DOT source and handing it to the Graphviz runtime, and callers that lay out the graph elsewhere (for example in a browser-side Graphviz build) can consume the source directly without linking github.com/goccy/go-graphviz and its WASM/font stack.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
// ShowQuery adds a node containing the query text, linked from the root.
ShowQuery bool
// ShowQueryStats adds query statistics to the query text node.
ShowQueryStats bool
}
Options configures DOT source generation.
type Renderer ¶
type Renderer struct {
Options Options
}
Renderer generates DOT source for a built plan.
func NewRenderer ¶
NewRenderer returns a DOT source renderer.
Click to show internal directories.
Click to hide internal directories.