dailytest

package
v0.0.0-...-c428d36 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DropTestTable

func DropTestTable(db *sql.DB, tableSQLs []string)

DropTestTable drops test table

func Run

func Run(sourceDB *sql.DB, targetDB *sql.DB, schema string, workerCount int, jobCount int, batch int)

Run runs the daily test

func RunCase

func RunCase(src *sql.DB, dst *sql.DB, schema string)

RunCase run some simple test case

func RunDailyTest

func RunDailyTest(db *sql.DB, tableSQLs []string, workerCount int, jobCount int, batch int)

RunDailyTest generates insert/update/delete sqls and execute

func RunTest

func RunTest(src *sql.DB, dst *sql.DB, schema string, writeSrc func(src *sql.DB))

RunTest will call writeSrc and check if src is contisitent with dst

func TruncateTestTable

func TruncateTestTable(db *sql.DB, tableSQLs []string)

TruncateTestTable truncates test data

Types

This section is empty.

Jump to

Keyboard shortcuts

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