This is the umbrella repository for SQL parsing related projects. It comprises of
- SQL parse tree in lib-sql/
- SQL parser in lib-sql-text/
- Data structure dumper in lib-dump/
- SQL parse tree dumper lib-dump-sql/
- Interactive shell for parsing and dumping in bin-dump-sql-text/
- Catch2
- CMake
- Boost
- Boost
This project is coming for convenience reasons with Dockerfiles to create a build and runtime environment. However it's use is only optional. See the subdirectory docker/ for more info.
Example usage from this directory:
export PROJECT_NAME=projsql
export BUILD_DIR=$HOME/tmp/projsql_build
export OUTPUT_DIR=$HOME/tmp/projsql
export CXX=/usr/bin/clang++
export CC=/usr/bin/clang
docker/setup
docker/configure Release
docker/build dump-sql-text
docker/execute dump-sql-text -i
docker/execute valgrind --tool=memcheck --leak-check=full /home/user/build/test/dump-sql-text -i
docker/cleanup
docker/remove