3 ms·
I've been using PugSQL to write SQL in Python [1]. With this package, you write the SQL inside SQL files so you can benefit from syntax highlighting, auto form
by ggregoire 3y ago
I've been using PugSQL to write SQL in Python [1].
With this package, you write the SQL inside SQL files so you can benefit from syntax highlighting, auto formatting, static analysis, etc. At the difference of writing strings of SQL inside Python files. I'm surprised this is not more popular.
[1] https://pugsql.org https://pugsql.org
- duckmysick 3y agoGreat concept, based on the Clojure library HugSQL. Unfortunately it depends on a specific version of SQLAlchemy and won't run with the latest version.