@check_precondition
def node(self, gid, sid, did, scid, tid, cid):
    '\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        '
    SQL = render_template('/'.join([self.template_path, 'nodes.sql']), cid=cid)
    (status, rset) = self.conn.execute_2darray(SQL)
    if (len(rset['rows']) == 0):
        return gone(_('Could not find the check constraint.'))
    if (('convalidated' in rset['rows'][0]) and rset['rows'][0]['convalidated']):
        icon = 'icon-check_constraints_bad'
        valid = False
    else:
        icon = 'icon-check_constraints'
        valid = True
    res = self.blueprint.generate_browser_node(rset['rows'][0]['oid'], tid, rset['rows'][0]['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 node(self, gid, sid, did, scid, tid, cid):
    '\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        '
    SQL = render_template('/'.join([self.template_path, 'nodes.sql']), cid=cid)
    (status, rset) = self.conn.execute_2darray(SQL)
    if (len(rset['rows']) == 0):
        return gone(_('Could not find the check constraint.'))
    if (('convalidated' in rset['rows'][0]) and rset['rows'][0]['convalidated']):
        icon = 'icon-check_constraints_bad'
        valid = False
    else:
        icon = 'icon-check_constraints'
        valid = True
    res = self.blueprint.generate_browser_node(rset['rows'][0]['oid'], tid, rset['rows'][0]['name'], icon=icon, valid=valid)
    return make_json_response(data=res, status=200)