Package mysql :: Package conversion :: Module output :: Class Basic_Conversion
[hide private]
[frames] | no frames]

Class Basic_Conversion

source code

Output_Conversion --+
                    |
                   Basic_Conversion

The default conversion class used if none is specified.

It will convert the following MySQL data types:

All other types are returned as strings. NULL values are returned as None.



Instance Methods [hide private]
  __init__(self)
  convert(self, mysql_type, value)
Convert a MySQL value to a Python object.
  _integer(self, value)
  _float(self, value)
  _string(self, value)
  _decimal(self, value)
  _bit(self, value)
  _datetime(self, value)
  _date(self, value)
  _time(self, value)
  _set(self, value)

Method Details [hide private]

__init__(self)
(Constructor)

source code 

convert(self, mysql_type, value)

source code 

Convert a MySQL value to a Python object.
Returns:
Returns the Python object.
Overrides: Output_Conversion.convert
(inherited documentation)

_integer(self, value)

source code 

_float(self, value)

source code 

_string(self, value)

source code 

_decimal(self, value)

source code 

_bit(self, value)

source code 

_datetime(self, value)

source code 

_date(self, value)

source code 

_time(self, value)

source code 

_set(self, value)

source code