This commit is contained in:
Chris Tsang 2021-08-07 23:25:22 +08:00
parent fbb09e17a7
commit 161c91436e
2 changed files with 6 additions and 16 deletions

View File

@ -35,14 +35,14 @@ jobs:
command: build command: build
args: > args: >
--all --all
--features default,runtime-${{ matrix.runtime }} --features default
- uses: actions-rs/cargo@v1 - uses: actions-rs/cargo@v1
with: with:
command: test command: test
args: > args: >
--all --all
--features default,runtime-${{ matrix.runtime }} --features default
sqlite: sqlite:
name: SQLite name: SQLite
@ -68,14 +68,12 @@ jobs:
with: with:
command: build command: build
args: > args: >
--all
--features default,runtime-${{ matrix.runtime }} --features default,runtime-${{ matrix.runtime }}
- uses: actions-rs/cargo@v1 - uses: actions-rs/cargo@v1
with: with:
command: test command: test
args: > args: >
--all
--features default,sqlx-sqlite,runtime-${{ matrix.runtime }} --features default,sqlx-sqlite,runtime-${{ matrix.runtime }}
mysql: mysql:
@ -121,14 +119,12 @@ jobs:
with: with:
command: build command: build
args: > args: >
--all
--features default,runtime-${{ matrix.runtime }} --features default,runtime-${{ matrix.runtime }}
- uses: actions-rs/cargo@v1 - uses: actions-rs/cargo@v1
with: with:
command: test command: test
args: > args: >
--all
--features default,sqlx-mysql,runtime-${{ matrix.runtime }} --features default,sqlx-mysql,runtime-${{ matrix.runtime }}
mariadb: mariadb:
@ -174,14 +170,12 @@ jobs:
with: with:
command: build command: build
args: > args: >
--all
--features default,runtime-${{ matrix.runtime }} --features default,runtime-${{ matrix.runtime }}
- uses: actions-rs/cargo@v1 - uses: actions-rs/cargo@v1
with: with:
command: test command: test
args: > args: >
--all
--features default,sqlx-mysql,runtime-${{ matrix.runtime }} --features default,sqlx-mysql,runtime-${{ matrix.runtime }}
postgres: postgres:
@ -224,12 +218,10 @@ jobs:
with: with:
command: build command: build
args: > args: >
--all
--features default,runtime-${{ matrix.runtime }} --features default,runtime-${{ matrix.runtime }}
- uses: actions-rs/cargo@v1 - uses: actions-rs/cargo@v1
with: with:
command: test command: test
args: > args: >
--all
--features default,sqlx-postgres,runtime-${{ matrix.runtime }} --features default,sqlx-postgres,runtime-${{ matrix.runtime }}

View File

@ -70,24 +70,22 @@ default = [
] ]
macros = ["sea-orm-macros"] macros = ["sea-orm-macros"]
mock = [] mock = []
with-json = ["serde_json", "sea-query/with-json", "sqlx-json"] with-json = ["serde_json", "sea-query/with-json"]
with-chrono = ["chrono", "sea-query/with-chrono", "sqlx-chrono"] with-chrono = ["chrono", "sea-query/with-chrono"]
with-rust_decimal = [ with-rust_decimal = [
"rust_decimal", "rust_decimal",
"sea-query/with-rust_decimal", "sea-query/with-rust_decimal",
"sqlx-decimal",
] ]
with-uuid = [ with-uuid = [
"uuid", "uuid",
"sea-query/with-uuid", "sea-query/with-uuid",
"sqlx-core/uuid",
"sqlx-macros/uuid",
] ]
sqlx-dep = ["sqlx"]
sqlx-all = ["sqlx-mysql", "sqlx-postgres", "sqlx-sqlite"] sqlx-all = ["sqlx-mysql", "sqlx-postgres", "sqlx-sqlite"]
sqlx-dep = ["sqlx-json", "sqlx-chrono", "sqlx-decimal", "sqlx-uuid"]
sqlx-json = ["sqlx/json", "with-json"] sqlx-json = ["sqlx/json", "with-json"]
sqlx-chrono = ["sqlx/chrono", "with-chrono"] sqlx-chrono = ["sqlx/chrono", "with-chrono"]
sqlx-decimal = ["sqlx/decimal", "with-rust_decimal"] sqlx-decimal = ["sqlx/decimal", "with-rust_decimal"]
sqlx-uuid = ["sqlx/uuid", "with-uuid"]
sqlx-mysql = ["sqlx-dep", "sea-query/sqlx-mysql", "sqlx/mysql"] sqlx-mysql = ["sqlx-dep", "sea-query/sqlx-mysql", "sqlx/mysql"]
sqlx-postgres = ["sqlx-dep", "sea-query/sqlx-postgres", "sqlx/postgres"] sqlx-postgres = ["sqlx-dep", "sea-query/sqlx-postgres", "sqlx/postgres"]
sqlx-sqlite = ["sqlx-dep", "sea-query/sqlx-sqlite", "sqlx/sqlite"] sqlx-sqlite = ["sqlx-dep", "sea-query/sqlx-sqlite", "sqlx/sqlite"]