diff options
author | D'Arcy J.M. Cain <darcy@druid.net> | 2002-11-25 01:28:32 +0000 |
---|---|---|
committer | D'Arcy J.M. Cain <darcy@druid.net> | 2002-11-25 01:28:32 +0000 |
commit | f393ee06802c247faa53cde2ad947f5e96fb92f2 (patch) | |
tree | 35af40fc1c3b8cca010212b6a1e39be56c09901a /src/interfaces/python/pgdb.py | |
parent | 04c8785c7b2b3dea038522cd96085c710c628c5b (diff) | |
download | postgresql-f393ee06802c247faa53cde2ad947f5e96fb92f2.tar.gz postgresql-f393ee06802c247faa53cde2ad947f5e96fb92f2.zip |
Change the debug variable to allow better control by the caller over how
debug output is managed. The user can continue to use the current method
of passing a formatting string to have a replacement done and output will
be sent to the standard output exactly as it did before. In addition they
can set it to a file object, sys.stderr for example, and the query string
will be printed to it. Thay can also set it to a method (function) and the
query string will be passed to that method giving them the maximum flexibility
to do whatever they want with the query string.
I will be working with the PyGreSQL documentation shortly and at that time
will properly document this feature.
Diffstat (limited to 'src/interfaces/python/pgdb.py')
0 files changed, 0 insertions, 0 deletions