SQLite Forum

Interesting project https://github.com/facebookincubator/CG-SQL
Login
> ...  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:

<https://github.com/facebookincubator/CG-SQL/blob/master/CQL_Guide/guide.md>

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).