mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2025-03-30 15:08:29 +00:00
feat: add sqlx offline data generation
This commit is contained in:
parent
6ab6df02ed
commit
136439c97a
10
Makefile
10
Makefile
@ -82,6 +82,16 @@ release: frontend ## Build app with release optimizations
|
||||
run: frontend ## Run app in debug mode
|
||||
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
|
||||
cd db/db-sqlx-postgres &&\
|
||||
DATABASE_URL=${POSTGRES_DATABASE_URL}\
|
||||
|
Loading…
x
Reference in New Issue
Block a user