graphviz

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Format

type Format string

Format is a Graphviz output format.

const (
	SVG Format = "svg"
	PNG Format = "png"
	DOT Format = "dot"
)

type Options

type Options struct {
	// Format is required (SVG, PNG, or DOT). The CLI always sets this from --type.
	Format         Format
	ShowQuery      bool
	ShowQueryStats bool
}

Options configures Graphviz rendering.

type Renderer

type Renderer struct {
	Options Options
}

Renderer renders a built plan with Graphviz.

func NewRenderer

func NewRenderer(opts Options) *Renderer

NewRenderer returns a Graphviz renderer.

func (*Renderer) Render

func (r *Renderer) Render(ctx context.Context, w io.Writer, plan *visualize.Plan) error

Render writes a Graphviz diagram for plan to w.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL