mservice

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: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse added in v0.0.2

func Parse(p *parser.Parser, query string) (ast.StmtNode, error)

Types

type Explainer

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

func NewExplainer

func NewExplainer(db *mysql.DB) *Explainer

func (*Explainer) ExplainWithAnalyze

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

type IndexExaminer

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

func NewIndexExaminer

func NewIndexExaminer(db *mysql.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 *mysql.DB) *IndexGetter

func (*IndexGetter) GetIndexes

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

type IndexSuggester

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

func NewIndexSuggester

func NewIndexSuggester(db *mysql.DB, dbName 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