Installation
npm
Prebuilt binaries for macOS (x64, ARM64), Linux (x64, ARM64) and Windows (x64) are published to npm as sqlsift-cli, which provides the sqlsift command:
npm install -g sqlsift-cli
sqlsift --version
Or run it without installing:
npx sqlsift-cli check --schema schema.sql queries/*.sql
In a Node project you can add it as a dev dependency (npm install --save-dev sqlsift-cli) and call sqlsift from your package.json scripts.
Prebuilt binaries
Archives for every platform are attached to each GitHub release.
From source
With a Rust toolchain installed:
cargo install --git https://github.com/yukikotani231/sqlsift sqlsift-cli
The language server for editors is a separate binary:
cargo install --git https://github.com/yukikotani231/sqlsift sqlsift-lsp
Try it without installing
The playground runs sqlsift in your browser.