[New-bugs-announce] [issue11688] SQLite trace callback

Torsten Landschoff report at bugs.python.org
Sat Mar 26 23:09:21 CET 2011

New submission from Torsten Landschoff <t.landschoff at 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 <report at bugs.python.org>

More information about the New-bugs-announce mailing list