Re:Records: Python library for making raw SQL queries to Pos...
by kpmah on Sunday February 07, 2016 @09:27PM
(#11056079)
It still needs a bit of work, but I wrote a small library for Python to use SQL in the Yesql style: https://github.com/KMahoney/pyesql
[ Parent
| on HN ]
Re:Records: Python library for making raw SQL queries to Pos...
by draegtun on Wednesday February 10, 2016 @03:40AM
(#11071439)
It's good to see the SQL Phrasebook Pattern still in use. They were quite popular before ORMs caught on. I'm currently writing one in Rebol so they must have come back into fashion :)
There is an another (slightly older) Clojure library - https://github.com/ray1729/sql-phrasebook
This was based on the venerable Perl CPAN module - https://metacpan.org/pod/Data::Phrasebook::SQL
Also an interesting read - http://www.perl.com/pub/2002/10/22/phrasebook.html | http://ootips.org/yonat/patterns/phrasebook.html