spannerplanviz

command module
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

README

spannerplanviz

Cloud Spanner Query Plan Visualizer using goccy/go-graphviz.

query plan

(Possibly) remote calls are rendered as dashed lines.

Install

$ go get -u github.com/apstndb/spannerplanviz

Usage

It can read various types in JSON and YAML.

PROFILE
$ gcloud spanner databases execute-sql --instance=sampleinstance sampledb --query-mode=PROFILE --format=yaml \
  --sql "SELECT SongName FROM Songs" |
  spannerplanviz --full --type=svg --output profile.svg
PLAN
$ gcloud spanner databases execute-sql --instance=sampleinstance sampledb --query-mode=PLAN --format=yaml \
  --sql="SELECT SongName FROM Songs WHERE STARTS_WITH(SongName, @prefix)" |
  spannerplanviz --full --type=svg --output plan.svg

Disclaimer

This tool is PRE-ALPHA quality.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
Package plantree provides functionality to render PlanNode as ASCII tree (EXPERIMENTAL)
Package plantree provides functionality to render PlanNode as ASCII tree (EXPERIMENTAL)
Package queryplan provides helper functions to process PlanNodes (EXPERIMENTAL)
Package queryplan provides helper functions to process PlanNodes (EXPERIMENTAL)

Jump to

Keyboard shortcuts

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