New submission from Torsten Landschoff <t.landsch...@gmx.net>: I'd like to access the SQLite trace callback from Python to actually see the same queries that SQLite actually gets to see.
The C API of SQLite supports this via the sqlite3_trace function. I added support to this to the sqlite3 module plus unit tests testing that it is called, can be removed again and that unicode arguments arrive correctly at the callback. Please consider applying the patch. I am not sure if this should go to the pysqlite project on Google Code directly, I am just submitting it here because I worked in the python source tree as I am more used to its build system. I am sorry, Gerhard, if this is the wrong way. ---------- components: Library (Lib) files: sqlite_trace_py3.diff keywords: patch messages: 132275 nosy: torsten priority: normal severity: normal status: open title: SQLite trace callback type: feature request versions: Python 2.7, Python 3.3 Added file: http://bugs.python.org/file21413/sqlite_trace_py3.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11688> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com