Package orm2 :: Module debug :: Class _sql
[hide private]
[frames] | no frames]

Class _sql

source code

_logstream --+
             |
            _sql

The _sql class has a logging mechanism that is controlled through the buffer_size attribute. If buffer_size is greater than 0, buffer_size sql statements will be retained in a list attribute called queries. This is used by unit tests to see if queries are generated as expected.

Instance Methods [hide private]
  __init__(self)
  write(self, s)
  reset(self)
  add_option(self, option_parser)

Inherited from _logstream: __call__, __nonzero__, flush


Method Details [hide private]

__init__(self)
(Constructor)

source code 
None
Overrides: _logstream.__init__

write(self, s)

source code 
None
Overrides: _logstream.write

reset(self)

source code 
None

add_option(self, option_parser)

source code 
None