@reflection.cache
def get_check_constraints(self, connection, table_name, schema=None, **kw):
    table_data = self._get_table_sql(connection, table_name, schema=schema, **kw)
    if (not table_data):
        return []
    CHECK_PATTERN = '(?:CONSTRAINT (\\w+) +)?CHECK *\\( *(.+) *\\),? *'
    check_constraints = []
    for match in re.finditer(CHECK_PATTERN, table_data, re.I):
        check_constraints.append({'sqltext': match.group(2), 'name': match.group(1)})
    return check_constraints
@reflection.cache
def get_check_constraints(self, connection, table_name, schema=None, **kw):
    table_data = self._get_table_sql(connection, table_name, schema=schema, **kw)
    if (not table_data):
        return []
    CHECK_PATTERN = '(?:CONSTRAINT (\\w+) +)?CHECK *\\( *(.+) *\\),? *'
    check_constraints = []
    for match in re.finditer(CHECK_PATTERN, table_data, re.I):
        check_constraints.append({'sqltext': match.group(2), 'name': match.group(1)})
    return check_constraints