SQLite Forum

Interesting project https://github.com/facebookincubator/CG-SQL
> ...  a kind of DSL for stored procedures for sqlite.

To save the next person some searching, as the intro page doesn't properly hyperlink link to its documentation, the "most interesting bit" is:


Management summary: it implements what appears to be a fairly sophisticated DSL for SQL procedures. The DSL gets compiled to C and linked in to the application as a routine which can be called from C, as opposed to an SQL-bound UDF (which it's not, though wrapping such a call in a UDF looks like it would be trivial).