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: Running integration tests on a live database:
- SQLite - SQLite
```sh ```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 - MySQL / MariaDB
```sh ```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 - PostgreSQL
```sh ```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 ### Running `sea-orm-cli` from source code