Пример #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'