예제 #1
0
 def _translate(self, expr, named=False, context=None):
     translator = alch.AlchemyExprTranslator(expr, context=context,
                                             named=named)
     return translator.get_result()
예제 #2
0
 def _translate(self, expr, named=False):
     context = alch.AlchemyDialect.make_context()
     translator = alch.AlchemyExprTranslator(expr,
                                             context=context,
                                             named=named)
     return translator.get_result()