Execute SQL statements in all possible permutations.
- Setup TiDB (Use TiUP Playground).
$ ./tests/run_tidb.sh
- Run
sql-reorder
.
$ export DATABASE_URL="mysql://[email protected]:4000/mysql"
# create table `X` in `mysql` database
$ cargo run -- tests/sqls/init_table.sql
# permute and execute two SQL scripts
$ cargo run -- tests/sqls/sql1.sql tests/sqls/sql2.sql