/querycpp

A modern and easy to use SQL query building in C++

Primary LanguageC++BSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Querry C++

Querry C++ is a library for easy SQL query building for modern C++ for multiple SQL dialects.

NOTE: This library is in no way production ready in its current state

NOTE: Right now this library mainly servers as a way to get better at C++ and to build a nifty little tool for me

External Dependencies

Querry C++ have one external dependency which is https://github.com/fmtlib/fmt if you build with CMake this dependency will be handled by Conan. If you build with make or waf.io you will have to install this dependency on your system.

Build

Query C++ provides Make, CMake, and waf.io as build system options.

All builds are configured to compile with Clang by default, though can be configured to work with other compiles.

Make

make

CMake

mkdir build 
cd build
cmake ..
make 

waf.io

Waf is depended on python3 and therefore you will need to install this first before utilsing this build option.

python waf configure 
python waf build

Usage

License

Supported Data types

Common

Numerical

  • NUMERICAL
  • BITINT
  • SMALLINT

Strings

  • VARCHAR is fully supported. To set the length of a varchar, the first constraint must be the length.

PostgreSQL

Numerical

  • SERIAL
  • BITSERIAL
  • NUMERIC

MariaDB / MySQL

TBW