3 ms·
Nim has a library (ormin) that does this, although it is still far from production quality: It parses your sql (in compile time), including the "create table"
by beagle3 7y ago
Nim has a library (ormin) that does this, although it is still far from production quality:
It parses your sql (in compile time), including the "create table" definition, and does type checking, rebuilds it with parameters (so that it is SQL injection safe and the DB optimizer can make a plan once and reuse it).
Obviously, it needs to be aware of specific SQL dialects if you need to use them .... so, it's unlikely to be very popular.