sqlx

 1#!/bin/bash
 2
 3set -e
 4
 5# Install sqlx-cli if needed
 6if [[ "$(sqlx --version)" != "sqlx-cli 0.5.7" ]]; then
 7    echo "sqlx-cli not found or not the required version, installing version 0.5.7..."
 8    cargo install sqlx-cli --version 0.5.7
 9fi
10
11cd crates/collab
12
13# Export contents of .env.toml
14eval "$(cargo run --bin dotenv)"
15
16# Run sqlx command
17sqlx $@