top | item 46844511

CG/SQL – SQL dialect compiler to C for sqlite3 mimicking stored procedures

24 points| linkdd | 29 days ago |ricomariani.github.io

9 comments

order

vmsp|25 days ago

I'm guessing this is a fork of Facebook's abandoned library? https://github.com/facebookincubator/CG-SQL

actionfromafar|25 days ago

From the repo: "Meta continues to make periodic ad hoc contributions to this fork and merge corrections back to their private repo. The maintainer thanks Meta for this continued informal cooperation."

HexDecOctBin|25 days ago

I always wonder why SQLite didn't expose a programmatic way for creating a query (as opposed to parsing SQL statements). Given that it was designed to be embedded, it seems to me that it would have made far more sense to provide an API based interface. Then, for example, stored procedures would just be function pointers passed as callbacks.

thesz|24 days ago

SQLite was a library for TCL, implementing "sqlite" command, and from TCL one can use it in a variety of interesting ways, approaching and even surpassing "stored procedures" concept.

For example, it is easy to create SQL function using TCL: https://sqlite.org/tclsqlite.html#the_function_method