23 lines
474 B
Makefile
23 lines
474 B
Makefile
|
[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" ]
|