Okay, I missed that in the documentation.  I was looking for a handle to a prepared statement.  I suppose it's hashing on the text of the SQL statement to determine equivalence?

I'm willing to retract the request.  I need to restructure my code a little bit to take advantage of this feature.



On Sat, Sep 17, 2011 at 5:47 PM, poq <report@bugs.python.org> wrote:

poq <poq@gmx.com> added the comment:

The sqlite3 module already uses prepared statements. Quoting from the documentation:

"The sqlite3 module internally uses a statement cache to avoid SQL parsing overhead. If you want to explicitly set the number of statements that are cached for the connection, you can set the cached_statements parameter. The currently implemented default is to cache 100 statements."

----------
nosy: +poq

_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue12993>
_______________________________________