dmodel

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExaminationIndexResult

type ExaminationIndexResult struct {
	IndexTarget         *IndexTarget
	ExecutionTimeMillis int64
}

func NewExaminationIndexResult

func NewExaminationIndexResult(it *IndexTarget, time int64) *ExaminationIndexResult

func (*ExaminationIndexResult) ToViewModel

type ExaminationResult

type ExaminationResult struct {
	OriginalTimeMillis int64
	IndexResults       []*ExaminationIndexResult
}

func NewExaminationResult

func NewExaminationResult(irs []*ExaminationIndexResult, time int64) *ExaminationResult

func (*ExaminationResult) ToViewModel

func (er *ExaminationResult) ToViewModel() *viewmodel.VmExaminationResult

type IndexColumn

type IndexColumn struct {
	Name string
}

func NewIndexColumn

func NewIndexColumn(name string) (*IndexColumn, error)

func (*IndexColumn) Equals

func (ic *IndexColumn) Equals(other *IndexColumn) bool

func (*IndexColumn) SafeName

func (ic *IndexColumn) SafeName() string

func (*IndexColumn) ToViewModel

func (ic *IndexColumn) ToViewModel() *viewmodel.VmIndexColumn

type IndexTarget

type IndexTarget struct {
	TableName string
	Columns   []*IndexColumn
}

func NewIndexTarget

func NewIndexTarget(tableName string, columns []string) *IndexTarget

func NewIndexTargetFromText

func NewIndexTargetFromText(text string) (*IndexTarget, error)

func NewIndexTargetsFromTexts

func NewIndexTargetsFromTexts(texts []string) ([]*IndexTarget, error)

func (*IndexTarget) CombinationString

func (it *IndexTarget) CombinationString() string

func (*IndexTarget) Equals

func (it *IndexTarget) Equals(other *IndexTarget) bool

func (*IndexTarget) HasSameIdxColumns

func (it *IndexTarget) HasSameIdxColumns(info *IndexTarget) bool

func (*IndexTarget) IsSafe

func (it *IndexTarget) IsSafe() bool

func (*IndexTarget) ToViewModel

func (it *IndexTarget) ToViewModel() *viewmodel.VmIndexTarget

type SingleTableExplainResult

type SingleTableExplainResult struct {
	TableName string

	EstimatedTotalTime float64
}

func (*SingleTableExplainResult) String

func (st *SingleTableExplainResult) String() string

Jump to

Keyboard shortcuts

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