예제 #1
0
 def accept(cls, expr):
     from query import util
     return util.contain(expr, ['selectList']) or util.contain(
         expr, ['query', 'fetch'])
예제 #2
0
 def accept(cls, expr):
     from query import util
     return util.contain(expr, ['whenList', 'thenList', 'elseExpr'])
예제 #3
0
 def accept(cls, expr):
     from query import util
     return util.contain(expr, ['operator', 'operands'])
예제 #4
0
 def accept(cls, expr):
     from query import util
     return util.contain(expr, ['scale', 'isExact', 'value', 'typeName', 'prec']) or \
            (util.contain(expr, ['value', 'typeName']) and isinstance(expr['value'], dict)) or \
            (util.contain(expr, ['typeName']) and str(expr['typeName']).lower() == 'null')
예제 #5
0
 def accept(cls, expr):
     from query import util
     return util.contain(expr, ['names']) and expr.get('key') == 'from'