3 ms·
Take a look at JinjaSQL - https://github.com/hashedin/jinjasql https://github.com/hashedin/jinjasql. Beyond a certain complexity, Django ORM gets in the way. Co
by ksri 10y ago
Take a look at JinjaSQL - https://github.com/hashedin/jinjasql https://github.com/hashedin/jinjasql. Beyond a certain complexity, Django ORM gets in the way. Constructing SQL by hand is painful and can lead to SQL injection. And that's where JinjaSQL shines.
You write your query as a string template, and then jinjasql interpolates the variables and provides the bind parameters. Makes it easy to maintain complex queries.
- bradmwalker 10y agohttp://docs.sqlalchemy.org/en/latest/core/ http://docs.sqlalchemy.org/en/latest/core/