@classmethod
def from_sqla(cls, sqla_obj):
    """ Create a yalchemy CheckConstraint from a sqlalchemy CheckConstraint """
    if sqla_obj.name is None or str(sqla_obj.name) == '_unnamed_':
        name = None
    else:
        name = str(sqla_obj.name)
    return cls(name, str(sqla_obj.sqltext))
