How to use the swat.cas.dbapi.DBAPITypeObject function in swat

To help you get started, we’ve selected a few swat examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sassoftware / python-swat / swat / cas / dbapi.py View on Github external
# 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')
github sassoftware / python-swat / swat / cas / dbapi.py View on Github external
# 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')
github sassoftware / python-swat / swat / cas / dbapi.py View on Github external
''' 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')
github sassoftware / python-swat / swat / cas / dbapi.py View on Github external
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')
github sassoftware / python-swat / swat / cas / dbapi.py View on Github external
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')
github sassoftware / python-swat / swat / cas / dbapi.py View on Github external
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')
github sassoftware / python-swat / swat / cas / dbapi.py View on Github external
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')
github sassoftware / python-swat / swat / cas / dbapi.py View on Github external
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')
github sassoftware / python-swat / swat / cas / dbapi.py View on Github external
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')
github sassoftware / python-swat / swat / cas / dbapi.py View on Github external
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')