To my surprise, [`constexpr` SQL parsing is a thing][1] :) That one even tests against SQLite, according to its doc, so maybe you're in luck. Constexpr, i.e. compile-time processing, is a C++17 (or newer) thing, and SQLite is pure C. So you're quite unlikely to get it from the official SQLite authors I'm guessing. [1]: https://github.com/mkitzan/constexpr-sql