Skip to content

Installation

If you have Rust installed:

Terminal window
cargo install sql-splitter

Don’t have Rust? Install it from rustup.rs.

For maximum performance, build with CPU-specific optimizations:

Terminal window
RUSTFLAGS="-C target-cpu=native" cargo build --release
Terminal window
sql-splitter --version

This should output sql-splitter followed by the version number.

Shell completions are automatically installed with make install. For manual installation:

Terminal window
# Bash (user)
sql-splitter completions bash >> ~/.bashrc
# Zsh (oh-my-zsh)
sql-splitter completions zsh > ~/.oh-my-zsh/completions/_sql-splitter
# Fish
sql-splitter completions fish > ~/.config/fish/completions/sql-splitter.fish

See the completions command for more options.

View documentation with man sql-splitter or man sql-splitter-diff.

For cargo install users, install man pages manually:

Terminal window
git clone https://github.com/helgesverre/sql-splitter
cd sql-splitter
make install-man