4 ms·
Nice project! Is it planned to use the with statement for transactions or having something like psycopg2.sql.Literal to do proper escaping in complex queries?
by frafra 5y ago
Nice project!
Is it planned to use the with statement for transactions or having something like psycopg2.sql.Literal to do proper escaping in complex queries?
- tlocke 5y agoThanks! Facata is really a low-level API, so the only SQL that's sent is what's explicitly sent. That means it wouldn't have a 'with' for transactions because that would require SQL to be sent 'behind the scenes'. Thanks for pointing me in the direction of psycopg2.sql, it looks interesting and I'll give it some thought.