zed/script/sqlx

15 lines
257 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 crates/collab
# Export contents of .env.toml
eval "$(cargo run --quiet --bin dotenv)"
# Run sqlx command
sqlx $@