Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
# Standard Types
STRING = DBAPITypeObject('char', 'varchar')
BINARY = DBAPITypeObject('binary', 'varbinary')
NUMBER = DBAPITypeObject('double', 'int32', 'int64', 'decsext', 'decquad')
DATETIME = DBAPITypeObject('datetime', 'date', 'time')
ROWID = DBAPITypeObject('rowid')
# Extended Types
CHAR = DBAPITypeObject('char')
FIXEDCHAR = DBAPITypeObject('char')
VARCHAR = DBAPITypeObject('varchar')
FIXEDBINARY = DBAPITypeObject('binary')
VARBINARY = DBAPITypeObject('varbinary')
INT32 = DBAPITypeObject('int32')
INT64 = DBAPITypeObject('int64')
INTEGER = DBAPITypeObject('int32', 'int64')
FLOAT = DBAPITypeObject('double', 'decsext', 'decquad')
DOUBLE = DBAPITypeObject('double')
DECIMAL = DBAPITypeObject('decsext', 'decquad')
DECSEXT = DBAPITypeObject('decsext')
DECQUAD = DBAPITypeObject('decquad')
DATE = DBAPITypeObject('date')
TIME = DBAPITypeObject('time')
# Standard Types
STRING = DBAPITypeObject('char', 'varchar')
BINARY = DBAPITypeObject('binary', 'varbinary')
NUMBER = DBAPITypeObject('double', 'int32', 'int64', 'decsext', 'decquad')
DATETIME = DBAPITypeObject('datetime', 'date', 'time')
ROWID = DBAPITypeObject('rowid')
# Extended Types
CHAR = DBAPITypeObject('char')
FIXEDCHAR = DBAPITypeObject('char')
VARCHAR = DBAPITypeObject('varchar')
FIXEDBINARY = DBAPITypeObject('binary')
VARBINARY = DBAPITypeObject('varbinary')
INT32 = DBAPITypeObject('int32')
INT64 = DBAPITypeObject('int64')
INTEGER = DBAPITypeObject('int32', 'int64')
FLOAT = DBAPITypeObject('double', 'decsext', 'decquad')
DOUBLE = DBAPITypeObject('double')
DECIMAL = DBAPITypeObject('decsext', 'decquad')
DECSEXT = DBAPITypeObject('decsext')
DECQUAD = DBAPITypeObject('decquad')
DATE = DBAPITypeObject('date')
TIME = DBAPITypeObject('time')
''' Base class for all column types '''
def __init__(self, *values):
self._values = values
def __cmp__(self, other):
if other in self._values:
return 0
if other < self._values:
return 1
return -1
# Standard Types
STRING = DBAPITypeObject('char', 'varchar')
BINARY = DBAPITypeObject('binary', 'varbinary')
NUMBER = DBAPITypeObject('double', 'int32', 'int64', 'decsext', 'decquad')
DATETIME = DBAPITypeObject('datetime', 'date', 'time')
ROWID = DBAPITypeObject('rowid')
# Extended Types
CHAR = DBAPITypeObject('char')
FIXEDCHAR = DBAPITypeObject('char')
VARCHAR = DBAPITypeObject('varchar')
FIXEDBINARY = DBAPITypeObject('binary')
VARBINARY = DBAPITypeObject('varbinary')
INT32 = DBAPITypeObject('int32')
INT64 = DBAPITypeObject('int64')
INTEGER = DBAPITypeObject('int32', 'int64')
FLOAT = DBAPITypeObject('double', 'decsext', 'decquad')
self._values = values
def __cmp__(self, other):
if other in self._values:
return 0
if other < self._values:
return 1
return -1
# Standard Types
STRING = DBAPITypeObject('char', 'varchar')
BINARY = DBAPITypeObject('binary', 'varbinary')
NUMBER = DBAPITypeObject('double', 'int32', 'int64', 'decsext', 'decquad')
DATETIME = DBAPITypeObject('datetime', 'date', 'time')
ROWID = DBAPITypeObject('rowid')
# Extended Types
CHAR = DBAPITypeObject('char')
FIXEDCHAR = DBAPITypeObject('char')
VARCHAR = DBAPITypeObject('varchar')
FIXEDBINARY = DBAPITypeObject('binary')
VARBINARY = DBAPITypeObject('varbinary')
INT32 = DBAPITypeObject('int32')
INT64 = DBAPITypeObject('int64')
INTEGER = DBAPITypeObject('int32', 'int64')
FLOAT = DBAPITypeObject('double', 'decsext', 'decquad')
DOUBLE = DBAPITypeObject('double')
DECIMAL = DBAPITypeObject('decsext', 'decquad')
DECSEXT = DBAPITypeObject('decsext')
def __cmp__(self, other):
if other in self._values:
return 0
if other < self._values:
return 1
return -1
# Standard Types
STRING = DBAPITypeObject('char', 'varchar')
BINARY = DBAPITypeObject('binary', 'varbinary')
NUMBER = DBAPITypeObject('double', 'int32', 'int64', 'decsext', 'decquad')
DATETIME = DBAPITypeObject('datetime', 'date', 'time')
ROWID = DBAPITypeObject('rowid')
# Extended Types
CHAR = DBAPITypeObject('char')
FIXEDCHAR = DBAPITypeObject('char')
VARCHAR = DBAPITypeObject('varchar')
FIXEDBINARY = DBAPITypeObject('binary')
VARBINARY = DBAPITypeObject('varbinary')
INT32 = DBAPITypeObject('int32')
INT64 = DBAPITypeObject('int64')
INTEGER = DBAPITypeObject('int32', 'int64')
FLOAT = DBAPITypeObject('double', 'decsext', 'decquad')
DOUBLE = DBAPITypeObject('double')
DECIMAL = DBAPITypeObject('decsext', 'decquad')
DECSEXT = DBAPITypeObject('decsext')
DECQUAD = DBAPITypeObject('decquad')
STRING = DBAPITypeObject('char', 'varchar')
BINARY = DBAPITypeObject('binary', 'varbinary')
NUMBER = DBAPITypeObject('double', 'int32', 'int64', 'decsext', 'decquad')
DATETIME = DBAPITypeObject('datetime', 'date', 'time')
ROWID = DBAPITypeObject('rowid')
# Extended Types
CHAR = DBAPITypeObject('char')
FIXEDCHAR = DBAPITypeObject('char')
VARCHAR = DBAPITypeObject('varchar')
FIXEDBINARY = DBAPITypeObject('binary')
VARBINARY = DBAPITypeObject('varbinary')
INT32 = DBAPITypeObject('int32')
INT64 = DBAPITypeObject('int64')
INTEGER = DBAPITypeObject('int32', 'int64')
FLOAT = DBAPITypeObject('double', 'decsext', 'decquad')
DOUBLE = DBAPITypeObject('double')
DECIMAL = DBAPITypeObject('decsext', 'decquad')
DECSEXT = DBAPITypeObject('decsext')
DECQUAD = DBAPITypeObject('decquad')
DATE = DBAPITypeObject('date')
TIME = DBAPITypeObject('time')
ROWID = DBAPITypeObject('rowid')
# Extended Types
CHAR = DBAPITypeObject('char')
FIXEDCHAR = DBAPITypeObject('char')
VARCHAR = DBAPITypeObject('varchar')
FIXEDBINARY = DBAPITypeObject('binary')
VARBINARY = DBAPITypeObject('varbinary')
INT32 = DBAPITypeObject('int32')
INT64 = DBAPITypeObject('int64')
INTEGER = DBAPITypeObject('int32', 'int64')
FLOAT = DBAPITypeObject('double', 'decsext', 'decquad')
DOUBLE = DBAPITypeObject('double')
DECIMAL = DBAPITypeObject('decsext', 'decquad')
DECSEXT = DBAPITypeObject('decsext')
DECQUAD = DBAPITypeObject('decquad')
DATE = DBAPITypeObject('date')
TIME = DBAPITypeObject('time')
CHAR = DBAPITypeObject('char')
FIXEDCHAR = DBAPITypeObject('char')
VARCHAR = DBAPITypeObject('varchar')
FIXEDBINARY = DBAPITypeObject('binary')
VARBINARY = DBAPITypeObject('varbinary')
INT32 = DBAPITypeObject('int32')
INT64 = DBAPITypeObject('int64')
INTEGER = DBAPITypeObject('int32', 'int64')
FLOAT = DBAPITypeObject('double', 'decsext', 'decquad')
DOUBLE = DBAPITypeObject('double')
DECIMAL = DBAPITypeObject('decsext', 'decquad')
DECSEXT = DBAPITypeObject('decsext')
DECQUAD = DBAPITypeObject('decquad')
DATE = DBAPITypeObject('date')
TIME = DBAPITypeObject('time')
def __init__(self, *values):
self._values = values
def __cmp__(self, other):
if other in self._values:
return 0
if other < self._values:
return 1
return -1
# Standard Types
STRING = DBAPITypeObject('char', 'varchar')
BINARY = DBAPITypeObject('binary', 'varbinary')
NUMBER = DBAPITypeObject('double', 'int32', 'int64', 'decsext', 'decquad')
DATETIME = DBAPITypeObject('datetime', 'date', 'time')
ROWID = DBAPITypeObject('rowid')
# Extended Types
CHAR = DBAPITypeObject('char')
FIXEDCHAR = DBAPITypeObject('char')
VARCHAR = DBAPITypeObject('varchar')
FIXEDBINARY = DBAPITypeObject('binary')
VARBINARY = DBAPITypeObject('varbinary')
INT32 = DBAPITypeObject('int32')
INT64 = DBAPITypeObject('int64')
INTEGER = DBAPITypeObject('int32', 'int64')
FLOAT = DBAPITypeObject('double', 'decsext', 'decquad')
DOUBLE = DBAPITypeObject('double')
BINARY = DBAPITypeObject('binary', 'varbinary')
NUMBER = DBAPITypeObject('double', 'int32', 'int64', 'decsext', 'decquad')
DATETIME = DBAPITypeObject('datetime', 'date', 'time')
ROWID = DBAPITypeObject('rowid')
# Extended Types
CHAR = DBAPITypeObject('char')
FIXEDCHAR = DBAPITypeObject('char')
VARCHAR = DBAPITypeObject('varchar')
FIXEDBINARY = DBAPITypeObject('binary')
VARBINARY = DBAPITypeObject('varbinary')
INT32 = DBAPITypeObject('int32')
INT64 = DBAPITypeObject('int64')
INTEGER = DBAPITypeObject('int32', 'int64')
FLOAT = DBAPITypeObject('double', 'decsext', 'decquad')
DOUBLE = DBAPITypeObject('double')
DECIMAL = DBAPITypeObject('decsext', 'decquad')
DECSEXT = DBAPITypeObject('decsext')
DECQUAD = DBAPITypeObject('decquad')
DATE = DBAPITypeObject('date')
TIME = DBAPITypeObject('time')