@check_precondition
def nodes(self, gid, sid, did, scid, tid):
    '\n        Returns all the Check Constraints.\n\n        Args:\n            gid: Server Group Id\n            sid: Server Id\n            did: Database Id\n            scid: Schema Id\n            tid: Table Id\n            cid: Check constraint Id.\n        '
    res = []
    SQL = render_template('/'.join([self.template_path, 'nodes.sql']), tid=tid)
    (status, rset) = self.conn.execute_2darray(SQL)
    for row in rset['rows']:
        if (('convalidated' in row) and row['convalidated']):
            icon = 'icon-check_constraints_bad'
            valid = False
        else:
            icon = 'icon-check_constraints'
            valid = True
        res.append(self.blueprint.generate_browser_node(row['oid'], tid, row['name'], icon=icon, valid=valid))
        return make_json_response(data=res, status=200)
Returns all the Check Constraints.

Args:
    gid: Server Group Id
    sid: Server Id
    did: Database Id
    scid: Schema Id
    tid: Table Id
    cid: Check constraint Id.
@check_precondition
def nodes(self, gid, sid, did, scid, tid):
    '\n        Returns all the Check Constraints.\n\n        Args:\n            gid: Server Group Id\n            sid: Server Id\n            did: Database Id\n            scid: Schema Id\n            tid: Table Id\n            cid: Check constraint Id.\n        '
    res = []
    SQL = render_template('/'.join([self.template_path, 'nodes.sql']), tid=tid)
    (status, rset) = self.conn.execute_2darray(SQL)
    for row in rset['rows']:
        if (('convalidated' in row) and row['convalidated']):
            icon = 'icon-check_constraints_bad'
            valid = False
        else:
            icon = 'icon-check_constraints'
            valid = True
        res.append(self.blueprint.generate_browser_node(row['oid'], tid, row['name'], icon=icon, valid=valid))
        return make_json_response(data=res, status=200)