Documentation ¶
Index ¶
- Constants
- Variables
- type SQLGenerator
- func (rl *SQLGenerator) Compare(r1 string, r2 string) (comment string, consistent bool)
- func (rl *SQLGenerator) Init(testName string)
- func (rl *SQLGenerator) LoadData(zzContent string, yyContent string, dbname string, queries int) (sqls []string, err error)
- func (rl *SQLGenerator) Query() (sqls []string)
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) Query ¶
func (rl *SQLGenerator) Query() (sqls []string)
Click to show internal directories.
Click to hide internal directories.