So I made a very simple module that takes those sql files and turns them into SQLAlchemy text objects with variables in them.
Would it be possible to add something like this to the project or does it require many sql parsing libraries etc. to ensure sql validity to find variables in the sql file?
https://nl1.outband.net/fossil/query/file?name=query.py&ci=t...
In short you have your query in file sql/dept_personal.sql and you call it like
for row in q.dept_personal(db_cursor, department='manpower'):
Rajni07•4d ago