Ejemplo n.º 1
0
 def append(self, query_part):
     if not is_sql_instance(query_part):
         raise SqlPuzzleException('Appended item must be instance of QueryPart, not %s.' % type(query_part))
     super().append(query_part)
Ejemplo n.º 2
0
 def wrapper(self, *args, **kwds):
     if not kwds and len(args) == 1 and is_sql_instance(args[0]):
         self.append_part(args[0])
         return self
     return func(self, *args, **kwds)