Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Explainer ¶
type Explainer struct {
// contains filtered or unexported fields
}
func NewExplainer ¶
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)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.