pservice

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2022 License: MIT Imports: 13 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse added in v0.0.2

func Parse(query string) (*parser.Statement, error)

Types

type ExplainAnalyzeTreeBuilder

type ExplainAnalyzeTreeBuilder struct{}

func NewExplainAnalyzeTreeBuilder

func NewExplainAnalyzeTreeBuilder() *ExplainAnalyzeTreeBuilder

func (*ExplainAnalyzeTreeBuilder) Build

func (erb *ExplainAnalyzeTreeBuilder) Build(explainLines []string) (*pmodel.ExplainAnalyzeTree, error)

type Explainer

type Explainer struct {
	// contains filtered or unexported fields
}

func NewExplainer

func NewExplainer(db *postgres.DB) *Explainer

func (*Explainer) ExplainWithAnalyze

func (e *Explainer) ExplainWithAnalyze(query string) (*pmodel.ExplainAnalyzeTree, error)

type IndexExaminer

type IndexExaminer struct {
	// contains filtered or unexported fields
}

func NewIndexExaminer

func NewIndexExaminer(db *postgres.DB, query string) *IndexExaminer

func (*IndexExaminer) CreateIndex

func (ie *IndexExaminer) CreateIndex(name string, it *dmodel.IndexTarget) error

func (*IndexExaminer) DropIndex

func (ie *IndexExaminer) DropIndex(name string, it *dmodel.IndexTarget) error

func (*IndexExaminer) Execute

func (ie *IndexExaminer) Execute() (int64, error)

type IndexGetter

type IndexGetter struct {
	// contains filtered or unexported fields
}

func NewIndexGetter

func NewIndexGetter(db *postgres.DB) *IndexGetter

func (*IndexGetter) GetIndexes

func (ig *IndexGetter) GetIndexes(dbSchema string, tables []string) ([]*dmodel.IndexTarget, error)

type IndexSuggester

type IndexSuggester struct {
	// contains filtered or unexported fields
}

func NewIndexSuggester

func NewIndexSuggester(db *postgres.DB, schema string) *IndexSuggester

func (*IndexSuggester) Suggest

func (is *IndexSuggester) Suggest(query string) ([]*dmodel.IndexTarget, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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