Package gavo :: Package base :: Module typesystems :: Class ToNumpyConverter
[hide private]
[frames] | no frames]

Class ToNumpyConverter

source code

      object --+    
               |    
FromSQLConverter --+
                   |
                  ToNumpyConverter

Instance Methods [hide private]
 
mapComplex(self, type, length) source code

Inherited from FromSQLConverter: convert

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]
  typeSystem = 'numpy'
  simpleMap = {'bigint': <type 'numpy.int64'>, 'boolean': <type ...

Inherited from FromSQLConverter (private): _charTypes

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

mapComplex(self, type, length)

source code 
Overrides: FromSQLConverter.mapComplex

Class Variable Details [hide private]

simpleMap

Value:
{'bigint': <type 'numpy.int64'>,
 'boolean': <type 'bool'>,
 'char': <type 'str'>,
 'date': <type 'numpy.float32'>,
 'double precision': <type 'numpy.float64'>,
 'integer': <type 'numpy.int32'>,
 'real': <type 'numpy.float32'>,
 'smallint': <type 'numpy.int16'>,
...