3 ms·
I fell out with a lot of the popular ORMs and decided to create a very lightweight query library with the features I really wanted, namely an ENTIRELY staticall
by cjdell 7y ago
I fell out with a lot of the popular ORMs and decided to create a very lightweight query library with the features I really wanted, namely an ENTIRELY statically typed query interface.
Link to fully working sample:
https://github.com/cjdell/ts-sql https://github.com/cjdell/ts-sql
The idea is that it should be impossible to write an invalid query, and also to ensure the returning data type is exactly representative of what has been queried.
Currently using knex.js to actually generate the SQL behind the scenes. It's experimental but I'm already using it in a couple of projects. I enjoy the fact the my queries have so little boilerplate now. :-)