3 ms·
This is my middle-ground solution for Python: https://github.com/bdowning/sql-athame https://github.com/bdowning/sql-athame Still fundamentally manipulating S
by phs2501 5y ago
This is my middle-ground solution for Python: https://github.com/bdowning/sql-athame https://github.com/bdowning/sql-athame
Still fundamentally manipulating SQL text (which is a feature as I don't want to learn a full DSL), but it handles wrangling embedded placeholders while you're composing stuff and some other common compositional tasks. It's worked well for me anyway but I'm under no illusions it'd be right for everyone.
Not an original concept regardless; my original version of this was in Node: https://github.com/bdowning/sql-assassin https://github.com/bdowning/sql-assassin, but a few years after I wrote that (and mostly didn't use it) I found https://github.com/gajus/slonik https://github.com/gajus/slonik which was very similar and much more fleshed-out; I rolled _some_ of its concepts and patterns into sql-athame.
- genericlemon24 5y agoHey, this has roughly the same philosophy as mine, I might add it to my survey: https://death.andgravity.com/own-query-builder#sqlbuilder-mini-psycopg2-sql https://death.andgravity.com/own-query-builder#sqlbuilder-mi...