feat: fix sqlx offline compilation

This commit is contained in:
realaravinth
2022-05-27 18:52:41 +05:30
parent 629c841e2d
commit 3710c8f653
2 changed files with 745 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ define cache_bust ## run cache_busting program
endef
default: frontend ## Build app in debug mode
$(call cache_bust)
cargo build
check: ## Check for syntax errors on all workspaces
@@ -100,6 +101,9 @@ sqlx-offline-data: ## prepare sqlx offline data
cd db/db-migrations && cargo sqlx prepare \
--database-url=${POSTGRES_DATABASE_URL} -- --bin db-migrations \
--all-features
cd db/db-sqlx-postgres && cargo sqlx prepare \
--database-url=${POSTGRES_DATABASE_URL} -- \
--all-features
# cd db/db-sqlx-sqlite/ \
# && DATABASE_URL=${SQLITE_DATABASE_URL} cargo sqlx prepare