sqlx-inline-fmt-0.3.0 is not a library.
sqlx-inline-fmt
sqlx-inline-fmt finds inline sqlx::query*! macros in Rust source files,
runs each SQL string through an external formatter, and rewrites the literals
in place.
Installation
Clone the repository and install the tool with Cargo:
Usage
sqlx-inline-fmt [OPTIONS] --formatter "<COMMAND>" [INPUTS]...
- INPUTS: Files or directories to scan. If omitted, the tool scans
./srcand./tests. - --formatter "<COMMAND>" (required): The external SQL formatter to run.
- The command is parsed like a shell string.
sqlx-inline-fmtwill append-as the final argument and send the SQL on stdin. The formatted SQL should be written to stdout.
- --check: Don’t write changes; just report which files would change. Exits with code 1 if any file would change (useful for CI).
- -v, --verbose: Include
okentries in per-file status output. - -q, --quiet: Suppress per-file status lines; only print warnings/errors.
Examples