sripathikrishnan / jinjasql

Template Language for SQL with Automatic Bind Parameter Extraction
MIT License
820 stars 90 forks source link

Make prepare_query accept a pre-compiled template #24

Closed Photonios closed 4 years ago

Photonios commented 5 years ago

Without this, the template has to be parsed/interpreted each time. By being able to pass a Template instance, you can avoid paying that cost each time.


Not sure if a separate function would be preferred. I'll happily change it if needed :)

pamarc commented 5 years ago

Would love to see this feature merged! :)