'Class representation.'

def __str__(self):

    s = ('<DBCol    %s    %s' % (self.name, _strMap[self.kind]))
    if self.index:
        s += '    INDEX'
        if self.indexLen:
            s += ('[:%d]' % self.indexLen)
    if self.foreignKey:
        s += '    FOREIGN'
    if ('default' in self.params):
        val = self.params['default']
        if (val is not None):
            val = ('"%s"' % val)
        s += ('    DEFAULT=%s' % val)
    for param in self.params:
        if (param == 'default'):
            continue
        s += ('    %s' % param.upper())
    s += '>'
    return s
