Project: jinjasql

Generate SQL Queries and Corresponding Bind Parameters using a Jinja2 Template

Project Details

Latest version
0.1.8
Home Page
https://github.com/hashedin/jinjasql
PyPI Page
https://pypi.org/project/jinjasql/

Project Popularity

PageRank
0.0015183609682627207
Number of downloads
472321

Generate SQL Queries using a Jinja Template, without worrying about SQL Injection

JinjaSQL automatically binds parameters that are inserted into the template. After JinjaSQL evaluates the template, you get 1) Query with placeholders for parameters, and 2) List of values that need to be bound to the query.

JinjaSQL doesn't actually execute the query - it only prepares the query and the bind parameters. You can execute the query using any database engine / driver you are working with.