sqlx-cli

CLI tool for SQLx, enabling compile-time SQL verification in Rust

brewmacoslinux
Try with needOr install directly
Source

About

Command-line utility for SQLx, the Rust SQL toolkit

Commands

sqlx

Examples

Create a new database migration$ sqlx migrate add -r create_users_table
Run all pending migrations against a database$ sqlx migrate run --database-url postgres://user:pass@localhost/mydb
Prepare offline mode by checking SQL queries against the database$ sqlx prepare --database-url sqlite:database.db