randgen

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

Documentation

Index

Constants

View Source
const CONFPATH = "CONFPATH"

container env

ConfPath = "/root/conf" RmPath = "/root/randgenx" ResultPath = "/root/result"

View Source
const RESULTPATH = "RESULTPATH"
View Source
const RMPATH = "RMPATH"

Variables

View Source
var ConfPath = os.Getenv(CONFPATH)
View Source
var ResultPath = os.Getenv(RESULTPATH)
View Source
var RmPath = os.Getenv(RMPATH)

Functions

This section is empty.

Types

type SQLGenerator

type SQLGenerator struct {
	TestName string
	// 存放yyzz文件的path
	ConfPath string
	//  存放结构的path
	ResultPath string
	//  randgen主目录
	RmPath string

	CachedQueries []string
}

func (*SQLGenerator) Compare

func (rl *SQLGenerator) Compare(r1 string, r2 string) (comment string, consistent bool)

r1为Mysql输出 r2为TiDB输出

func (*SQLGenerator) Init

func (rl *SQLGenerator) Init(testName string)

func (*SQLGenerator) LoadData

func (rl *SQLGenerator) LoadData(zzContent string, yyContent string, dbname string, queries int) (sqls []string, err error)

func (*SQLGenerator) Query

func (rl *SQLGenerator) Query() (sqls []string)

Jump to

Keyboard shortcuts

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