···1717 # Enable at least one `ASYNC_RUNTIME` and `DATABASE_DRIVER` feature if you want to run migration via CLI.
1818 # View the list of supported features at https://www.sea-ql.org/SeaORM/docs/install-and-config/database-and-async-runtime.
1919 # e.g.
2020- # "runtime-tokio-rustls", # `ASYNC_RUNTIME` feature
2121- # "sqlx-postgres", # `DATABASE_DRIVER` feature
2020+ "runtime-tokio", # `ASYNC_RUNTIME` feature
2121+ "sqlx-sqlite", # `DATABASE_DRIVER` feature
2222]
···1919# Run all tests
2020test:
2121 cargo test {{_cargo_flags}}
2222+2323+2424+# Only used to build / generate entities
2525+dev-db := "sqlite:///" + justfile_directory() + "/target/dev.db"
2626+2727+# build entities from migrations
2828+[working-directory:"crates/db"]
2929+entity:
3030+ touch ../../target/dev.db
3131+ cd migration && cargo run -- -u {{dev-db}}
3232+ sea-orm-cli generate entity \
3333+ --database-url {{dev-db}} \
3434+ --output-dir ./src/entity \
3535+ # --expanded-format # add flag if expanded format is needed for debugging
3636+3737+3838+3939+4040+4141+4242+4343+4444+