'Check if the value can match given the column attributes.
Raises this class if the value provided can\'t match any value in the
column in the table given the column\'s attributes. For example, if the
column is a string and the value is longer than the column then it
won\'t match any value in the column in the table.'

@classmethod
def check(cls, value, col_attr):

    col = col_attr.property.columns[0]
    if isinstance(col.type, sql.types.Boolean):
        return
    if (not col.type.length):
        return
    if (len(value) > col.type.length):
        raise cls()
