__ALL__ = [
'INT', 'CHAR', 'VARCHAR', 'TEXT', 'FLOAT', 'DECIMAL',
- 'TIMESTAMP', 'DATETIME', 'CLOB', 'BLOB', 'BOOLEAN', 'String', 'Integer', 'Numeric', 'DateTime', 'Binary', 'Boolean'
+ 'TIMESTAMP', 'DATETIME', 'CLOB', 'BLOB', 'BOOLEAN', 'String', 'Integer', 'Numeric', 'DateTime', 'Binary', 'Boolean', 'NULLTYPE'
]
class TypeEngine(object):
- def get_col_spec(self, typeobj):
+ def get_col_spec(self):
raise NotImplementedError()
def convert_bind_param(self, value):
raise NotImplementedError()
return typeobj.adapt(typeobj.__class__)
class NullTypeEngine(TypeEngine):
- def get_col_spec(self, typeobj):
+ def get_col_spec(self):
raise NotImplementedError()
def convert_bind_param(self, value):
return value
return TEXT()
else:
return self
-
+
class Integer(NullTypeEngine):
"""integer datatype"""
pass
class BLOB(Binary): pass
class BOOLEAN(Boolean): pass
+NULLTYPE = NullTypeEngine()
\ No newline at end of file