zed/script/sqlx
Max Brunsfeld 1995bd89a6 Deserialize buffer's diagnostics
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-11-02 12:29:03 -07:00

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