mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2025-03-29 04:38:59 +03:00
feat: add sqlx offline data generation
This commit is contained in:
parent
6ab6df02ed
commit
136439c97a
1 changed files with 10 additions and 0 deletions
10
Makefile
10
Makefile
|
@ -82,6 +82,16 @@ release: frontend ## Build app with release optimizations
|
||||||
run: frontend ## Run app in debug mode
|
run: frontend ## Run app in debug mode
|
||||||
cargo run
|
cargo run
|
||||||
|
|
||||||
|
|
||||||
|
sqlx-offline-data: ## prepare sqlx offline data
|
||||||
|
cargo sqlx prepare --database-url=${POSTGRES_DATABASE_URL} -- --bin mcaptcha \
|
||||||
|
--all-features
|
||||||
|
cd db/db-migrations && cargo sqlx prepare \
|
||||||
|
--database-url=${POSTGRES_DATABASE_URL} -- --bin db-migrations \
|
||||||
|
--all-features
|
||||||
|
# cd db/db-sqlx-sqlite/ \
|
||||||
|
# && DATABASE_URL=${SQLITE_DATABASE_URL} cargo sqlx prepare
|
||||||
|
|
||||||
test: frontend-test frontend ## Run all available tests
|
test: frontend-test frontend ## Run all available tests
|
||||||
cd db/db-sqlx-postgres &&\
|
cd db/db-sqlx-postgres &&\
|
||||||
DATABASE_URL=${POSTGRES_DATABASE_URL}\
|
DATABASE_URL=${POSTGRES_DATABASE_URL}\
|
||||||
|
|
Loading…
Add table
Reference in a new issue