/simplesql

C++ library for parsing, evaluating simple SQLite queries and expressions

Primary LanguageC++Apache License 2.0Apache-2.0

SimpleSQL

Simple C++11 library to parse and evaluate SQL expressions

Dependencies

Build Without Tests

mkdir build && cd build
cmake

Building for MacOS XCode

brew install antlr antlr4-cpp-runtime
sh ./antr_gen_cpp.sh
mkdir build && cd build
MAKE_TESTS=1 GTEST_DIR=/path/to/googletest cmake -G Xcode ..
# either open project in Xcode and build/run
xcodebuild

Updating SQL grammar

brew install antlr
sh ./antr_gen_cpp.sh

TODO

  • improve unit tests
  • implement bulk of functions in sqlite_functions.cpp