inspect

package
v0.312.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InspectCmd

func InspectCmd(ch *cmdutil.Helper) *cobra.Command

InspectCmd runs read-only diagnostic checks against a database branch.

Types

type CheckResult

type CheckResult struct {
	Check    string           `json:"check"`
	Database string           `json:"database"`
	Branch   string           `json:"branch"`
	Columns  []string         `json:"columns,omitempty"`
	Rows     []map[string]any `json:"rows"`
	RowCount int              `json:"row_count"`
	Skipped  string           `json:"skipped,omitempty"`
	// NextSteps points at the pscale insights commands that analyze the same
	// problem from server-side production traffic data.
	NextSteps []string `json:"next_steps,omitempty"`
}

CheckResult is one check's outcome, printable in all output formats.

type Report

type Report struct {
	Database string         `json:"database"`
	Branch   string         `json:"branch"`
	Results  []*CheckResult `json:"results"`
	// NextSteps recommends the server-side analysis commands that complement
	// these connection-level checks.
	NextSteps []string `json:"next_steps"`
}

Report is the combined output of inspect all.

Jump to

Keyboard shortcuts

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