Sqlpp11, An EDSL For Type-Safe SQL In C++ For Databases, Containers, Streams And More

Most C/C++ interfaces to SQL databases are string based. Theses strings effectively hide expression structures, names and types from the compiler. And they are vendor-specific. And they defer expression parsing and validation until the test phase or (even worse) production. This feels wrong. C++ can do better. This talk gives an introduction to sqlpp11, an embedded domain specific language for SQL in C++. It allows you to build type-safe SQL expressions with type-safe results, all of which can be verified at compile time, long before your code enters unit tests or even production. In addition to its obvious use with relational databases, sqlpp11 can also serve as an SQL frontend for all kinds of data sources: Since sqlpp11 offers complete SQL expression trees even at compile time, it isn''t hard to apply SQL expressions to std::vector or std::map for instance, or streams, or XML, or JSON, you name it. With your help, sqlpp11 could become for C++ what LINQ is for C#.

Speaker: Roland Bock

Slides: Sqlpp11, An EDSL For Type-Safe SQL In C++ For Databases, Containers, Streams And More


Go back