sqlpp11 is an embedded domain-specific language which allows programming SQL very naturally in modern C++. It also enables the compiler to detect syntax errors, type errors, name errors, and even some semantic errors before they ever hit unit tests or production. Queries can be constructed at compile time or run time, offering varying levels of safety and flexibility.