Installation
macOS and Linux:
curl -fsSL https://sql-splitter.dev/install.sh | shDownloads the pre-built binary for your platform from the latest
GitHub Release
and installs it to $CARGO_HOME/bin (or $HOME/.cargo/bin).
Override the location with SQL_SPLITTER_INSTALL_DIR.
brew install helgesverre/tap/sql-splitterIf you have Rust installed:
cargo install sql-splitterDon’t have Rust? Install it from rustup.rs.
PowerShell:
powershell -ExecutionPolicy Bypass -c "irm https://sql-splitter.dev/install.ps1 | iex"Download from GitHub Releases:
| Platform | Download |
|---|---|
| Linux x86_64 | sql-splitter-x86_64-unknown-linux-gnu.tar.xz |
| Linux ARM64 | sql-splitter-aarch64-unknown-linux-gnu.tar.xz |
| macOS Intel | sql-splitter-x86_64-apple-darwin.tar.xz |
| macOS Apple Silicon | sql-splitter-aarch64-apple-darwin.tar.xz |
| Windows x86_64 | sql-splitter-x86_64-pc-windows-msvc.zip |
Each archive ships with a matching .sha256 checksum file.
Build from Source
Section titled “Build from Source”git clone https://github.com/helgesverre/sql-splittercd sql-splittermake install # Installs binary + shell completions + man pagesOr straight from the repository without cloning:
cargo install --git https://github.com/helgesverre/sql-splitterOptimized Build
Section titled “Optimized Build”For maximum performance, build with CPU-specific optimizations:
RUSTFLAGS="-C target-cpu=native" cargo build --releaseVerify Installation
Section titled “Verify Installation”sql-splitter --versionThis should output sql-splitter followed by the version number.
Shell Completions
Section titled “Shell Completions”Shell completions are automatically installed with make install. For manual installation:
# Bash (user)sql-splitter completions bash >> ~/.bashrc
# Zsh (oh-my-zsh)sql-splitter completions zsh > ~/.oh-my-zsh/completions/_sql-splitter
# Fishsql-splitter completions fish > ~/.config/fish/completions/sql-splitter.fishSee the completions command for more options.
Man Pages
Section titled “Man Pages”View documentation with man sql-splitter or man sql-splitter-diff.
For cargo install users, install man pages manually:
git clone https://github.com/helgesverre/sql-splittercd sql-splittermake install-manUse as a Rust Library
Section titled “Use as a Rust Library”sql-splitter is also published as a crate. See Library Usage for the API.