Skip to content

dvhar/csvquery

Repository files navigation

CSV query engine for big files

Build

Linux and Mac

First install boost libraries. You may also need boost-filesystem if it isn't included.

cd build
cmake ..
make

Windows

Install msys2. In msys2 shell, install dependencies:

pacman -Syu git mingw-w64-x86_64-{cmake,boost,toolchain,python-pip}

Then build it:

cd build
cmake .. -G 'MinGW Makefiles'
mingw32-make.exe

Test

First install pyyaml python library if you don't already have it

python3 -m pip install pyyaml
cd build
./runTests.py

Run

Show usage info:

./cql help

Run queries from command line:

./cql "select * from stuff.csv"

Start http server to run queries from web browser interface or to view query language documentation:

./cql