Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

Latest commit

 

History

History
19 lines (15 loc) · 416 Bytes

README.md

File metadata and controls

19 lines (15 loc) · 416 Bytes

SQL Reorder

Execute SQL statements in all possible permutations.

Get Start

  1. Setup TiDB (Use TiUP Playground).
$ ./tests/run_tidb.sh
  1. 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