mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 10:05:41 +00:00
feat: add sqlx offline data generation
This commit is contained in:
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}\
|
||||||
|
|||||||
Reference in New Issue
Block a user