2022-02-03 21:55:10 +00:00
|
|
|
[env]
|
|
|
|
# can be defined as kcov, tarpaulin, ...
|
|
|
|
CARGO_MAKE_COVERAGE_PROVIDER = "kcov"
|
|
|
|
|
|
|
|
[tasks.dropdb]
|
|
|
|
command = "sqlx"
|
|
|
|
args = ["database", "drop"]
|
|
|
|
|
|
|
|
[tasks.createdb]
|
|
|
|
command = "sqlx"
|
|
|
|
args = ["database", "create"]
|
|
|
|
|
|
|
|
[tasks.migratedb]
|
|
|
|
command = "sqlx"
|
|
|
|
args = ["migrate", "run"]
|
|
|
|
|
|
|
|
[tasks.resetdb]
|
2022-02-04 19:36:54 +00:00
|
|
|
run_task = { name = ["dropdb", "createdb", "migratedb"] }
|
2022-02-03 21:55:10 +00:00
|
|
|
|
|
|
|
[tasks.entity]
|
|
|
|
command = "sea-orm-cli"
|
|
|
|
args = [ "generate", "entity", "-o", "src/entity", "--with-serde", "both" ]
|