~cboylan/+junk/foobar

« back to all changes in this revision

Viewing changes to src/boots/lib/lingos/sql.py

  • Committer: David Rosenbaum
  • Date: 2010-01-21 07:38:26 UTC
  • mfrom: (22.1.6 lingos)
  • Revision ID: davidjrosenbaum@launchpad.net-20100121073826-4nyqixttl96enepv
Merged in lingos (no conflicts)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import itertools
1
2
from boots.lib.lingos import lingo
2
3
 
3
4
class SQLInterpreter(lingo.Interpreter):
4
 
    pass
 
5
    def evaluate(self, code):
 
6
        return itertools.chain(*(server.execute(code) for server in self.servers))