From e1b8836732f38578944c6dfcb66c0341154352ab Mon Sep 17 00:00:00 2001 From: Aravinth Manivannan Date: Thu, 26 Jan 2023 20:54:40 +0530 Subject: [PATCH] feat: make workflow to sqlx offline codegen --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index b5a9032..75e41d1 100644 --- a/Makefile +++ b/Makefile @@ -51,6 +51,12 @@ release: frontend ## Release build run: default ## Run debug build cargo run +sqlx-offline-data: ## prepare sqlx offline data + cargo sqlx prepare \ + --database-url=${DATABASE_URL} -- \ + --all-features \ + --bin survey + test: frontend ## Run tests echo 'static/' && tree static || true echo 'tree/' && tree assets || true