impl

package
v0.0.0-...-13b0add Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const Contain = "contain"
View Source
const File = "file"
View Source
const LocalRandgen = "local-randgen"
View Source
const String = "string"

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainsComparer

type ContainsComparer struct {
	Content string
}

func (*ContainsComparer) CompareQuery

func (c *ContainsComparer) CompareQuery(db1, db2 *sql.DB, query string) (string, error, error)

execute on tidb and get all rows data as a single string then check if that string contains the specified Content can be used to check the tidb explain result

type FileDataLoader

type FileDataLoader struct {
	FileName string
}

file loader will loader data and queries from a file

func (*FileDataLoader) LoadData

func (loader *FileDataLoader) LoadData(dbName string) []string

func (*FileDataLoader) LoadQuery

func (loader *FileDataLoader) LoadQuery(dbName string) []string

func (*FileDataLoader) Name

func (loader *FileDataLoader) Name() string

type LoadDataRequest

type LoadDataRequest struct {
	Yy      string `json:"yy"`
	ZZ      string `json:"zz"`
	DB      string `json:"db"`
	Queries int    `json:"queries"`
}

type LoadDataResponse

type LoadDataResponse struct {
	SQLs    []string `json:"sql"`
	Queries []string `json:"queries"`
}

type LocalRandgenLoader

type LocalRandgenLoader struct {
	Yy      string
	Zz      string
	Queries int
	// contains filtered or unexported fields
}

func (*LocalRandgenLoader) LoadData

func (test *LocalRandgenLoader) LoadData(db string) []string

func (*LocalRandgenLoader) LoadQuery

func (test *LocalRandgenLoader) LoadQuery(db string) []string

func (*LocalRandgenLoader) Name

func (test *LocalRandgenLoader) Name() string

type RandgenLoader

type RandgenLoader struct {
	Yy      string
	Zz      string
	Queries int
	// contains filtered or unexported fields
}

func (*RandgenLoader) LoadData

func (test *RandgenLoader) LoadData(db string) []string

func (*RandgenLoader) LoadQuery

func (test *RandgenLoader) LoadQuery(db string) []string

func (*RandgenLoader) Name

func (test *RandgenLoader) Name() string

type StringLoader

type StringLoader struct {
	SQLStr string
}

file loader will loader data and queries from a file

func (*StringLoader) LoadData

func (loader *StringLoader) LoadData(dbName string) []string

func (*StringLoader) LoadQuery

func (loader *StringLoader) LoadQuery(dbName string) []string

func (*StringLoader) Name

func (loader *StringLoader) Name() string

Jump to

Keyboard shortcuts

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