Installing csvsql
There are a few ways to install csvsql:
From source
To install csvsql from source, make sure you have the Rust toolchain installed. See details here
From the repository
To install csvsql from the repository, you need to clone the repository, build the tool, and copy the executable to your path. For example, on Linux (assuming ~/bin is in your path):
git clone https://github.com/yift/csvsql
cd csvsql
cargo build -r
cp target/release/csvsql ~/bin
Using Cargo
To install csvsql using Cargo, you can simply run:
cargo install csvsql
From Docker
You can use the csvsql Docker container. Please note that this will allow you to access only the files in the container volume. For example:
docker run -it --rm -v $(pwd):/data yiftach/csvsql -m /data
(To install Docker, see here).
From binary
Some operating system binaries are available in the latest release
For Apple
Please note that Apple machines might not allow you to run the binary after downloading it. If you get an error like: Apple could not verify "csvsql" is free of malware that may harm your Mac or compromise your privacy, you can follow these steps:
- Allow
csvsqlto be executed from thePrivacy & Securitysettings. See Apple Support for details. - Allow
csvsqlto be executed from the command line using:chmod +x ./csvsql xattr -d com.apple.quarantine ./csvsql - Allow all apps downloaded from GitHub to be executed from the
Privacy & Securitysettings. See Apple Support for details. - Use another type of installation (see above).