Hacker News new | ask | show | jobs
by marcloney 3516 days ago
> While JinjaSQL can handle insert/update statements, you are better off using your ORM to handle such statements. JinjaSQL is mostly meant for dynamic select statements that an ORM cannot handle as well.

[1] https://github.com/hashedin/jinjasql#when-to-use-jinjasql

1 comments

Sorry, but this doesn't answer my question. Prepared statements have nothing to do with ORMs.
This library doesn't run SQL, its only a template engine that gives you back a parameterized query and parameter array back. It's up to you to actually use them with an adapter, which means you can use prepared statements.