# Usage

```text
Usage of C:\Users\yushu\work\enterprise-toolkit\testcases\bank\bank.exe:
  -accounts int
        the number of the bank accounts (default 1000000)
  -create
        drop old tables if exists, only create new tables without data for test (default false)
  -driver string
        database driver name, support 'mysql', 'postgres' (default "mysql")
  -dsn string
        data source name
        MySQL: root:@tcp(127.0.0.1:4000)/test
        PostgreSQL: postgres://root:@127.0.0.1:5432/postgres?sslmode=disable
         (default "root:@tcp(127.0.0.1:4000)/test")
  -insert
        insert data for test (default false)
  -interval duration
        verify interval (default 2s)
  -threads int
        threads count (default 10)
```

## Output

```text
time="2021-06-21T16:45:37+08:00" level=info msg="Data source name: root:@tcp(127.0.0.1:4000)/test"
time="2021-06-21T16:45:37+08:00" level=info msg="start to init..."
time="2021-06-21T16:45:37+08:00" level=info msg="init end..."
time="2021-06-21T16:45:37+08:00" level=info msg="start to test..."
```

When it meets the total balance is not as expected, the following message printed and then exits.

```text
time="2021-06-07T12:39:00+08:00" level=fatal msg="[bank] accounts total must 1000000000, but got 1000000100, query uuid is 36bfa0a7-3b51-45ee-bd3b-f6c18dfd0583"
```
