zed/script/sqlx

18 lines
349 B
Plaintext
Raw Normal View History

#!/bin/bash
set -e
# Install sqlx-cli if needed
if [[ "$(sqlx --version)" != "sqlx-cli 0.5.7" ]]; then
echo "sqlx-cli not found or not the required version, installing version 0.5.7..."
cargo install sqlx-cli --version 0.5.7
fi
2022-04-12 03:18:12 +03:00
cd crates/collab
# Export contents of .env.toml
eval "$(cargo run --bin dotenv)"
# Run sqlx command
sqlx $@