def __init__(self, table):
        '''
        :param sqlalchemy.Table table:
            the table definition
        '''
        if not isinstance(table, Table):
            raise ValueError('table must be instance of sqlalchemy.Table;'
                             ' got %s' % type(table))
        self.table = table
        self.scalars = []
        self.arrays = []

        for field in table.c:
            try:
                ptype = field.type.python_type
            except NotImplementedError:
                logger.warn(
                    "%s (%s) has no python_type defined" % (field, field.type))
                ptype = None

            if ptype is list:
                self.arrays.append(field.name)
            else:
                self.scalars.append(field.name)
def __init__ ( self , table ) : if not isinstance ( table , Table ) : raise ValueError ( 'table must be instance of sqlalchemy.Table;' ' got %s' % type ( table ) ) self . table = table self . scalars = [ ] self . arrays = [ ] for field in table . c : try : ptype = field . type . python_type except NotImplementedError : logger . warn ( "%s (%s) has no python_type defined" % ( field , field . type ) ) ptype = None if ptype is list : self . arrays . append ( field . name ) else : self . scalars . append ( field . name )
:param sqlalchemy.Table table:
            the table definition