app/Makefile.toml

23 lines
474 B
Makefile
Raw Normal View History

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]
run_task = { name = ["dropdb", "createdb", "migratedb", "entity"] }
[tasks.entity]
command = "sea-orm-cli"
args = [ "generate", "entity", "-o", "src/entity", "--with-serde", "both" ]