Generate SQL queries and corresponding bind parameters using Jinja2 templates. Version 0.1.12 is the latest, with recent security upgrades and removal of older Python support. Release cadence is irregular, primarily for bug fixes and security updates.
pip install jinjasql2No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic usage: create a JinjaSql instance, pass a Jinja template and parameters, get SQL and bind parameters.
Upgrade Python to 3.7 or later.
Use 'from jinjasql import JinjaSql'.
Set param_style='named' or 'qmark' to avoid issues.
Upgrade to 0.1.9+ or avoid identifier syntax.
Change import to 'from jinjasql import JinjaSql'.
Ensure template syntax is correct and consider upgrading to 0.1.9+ for identifier support.
Use 'prepare_query' method; if it's missing, upgrade jinjasql2.