zed/script/sqlx
Antonio Scandurra 2a763d0987 Upgrade sqlx-cli to v0.5.7 to fix compilation errors
Co-Authored-By: Max Brunsfeld <max@zed.dev>
2021-09-07 18:51:10 +02:00

15 lines
242 B
Bash
Executable File

#!/bin/bash
set -e
# Install sqlx-cli if needed
[[ "$(sqlx --version)" == "sqlx-cli 0.5.7" ]] || cargo install sqlx-cli --version 0.5.7
cd server
# Export contents of .env.toml
eval "$(cargo run --bin dotenv)"
# Run sqlx command
sqlx $@