Edit CONTRIBUTING

This commit is contained in:
Billy Chan 2022-05-13 18:19:25 +08:00
parent 8f42b893a5
commit dd5808e535
No known key found for this signature in database
GPG Key ID: A2D690CAC7DF3CC7

View File

@ -56,15 +56,15 @@ Next, if you want to run integration tests on a live database. We recommand usin
Running integration tests on a live database:
- SQLite
```sh
DATABASE_URL="sqlite::memory:" cargo t --all --features default,sqlx-sqlite,runtime-async-std-native-tls
DATABASE_URL="sqlite::memory:" cargo test --all --features default,sqlx-sqlite,runtime-async-std-native-tls
```
- MySQL / MariaDB
```sh
DATABASE_URL="mysql://root:root@localhost" cargo t --all --features default,sqlx-mysql,runtime-async-std-rustls
DATABASE_URL="mysql://root:root@localhost" cargo test --all --features default,sqlx-mysql,runtime-async-std-rustls
```
- PostgreSQL
```sh
DATABASE_URL="postgres://root:root@localhost" cargo t --all --features default,sqlx-postgres,runtime-async-std-native-tls
DATABASE_URL="postgres://root:root@localhost" cargo test --all --features default,sqlx-postgres,runtime-async-std-native-tls
```
### Running `sea-orm-cli` from source code