(self, db)
return res, names
Load table info.

        Returns tuple of (dict(name->ATable), namelist)
Load table info.
Load table info .
def get_tables(self, db):
        """Load table info.

        Returns tuple of (dict(name->ATable), namelist)"""

        curs = db.cursor()
        q = "select table_name, merge_state, dest_table, table_attrs"\
            " from londiste.get_table_list(%s) where local"
        curs.execute(q, [self.queue_name])
        rows = curs.fetchall()
        db.commit()

        res = {}
        names = []
        for row in rows:
            t = ATable(row)
            res[t.table_name] = t
            names.append(t.table_name)
        return res, names
def get_tables ( self , db ) : curs = db . cursor ( ) q = "select table_name, merge_state, dest_table, table_attrs" " from londiste.get_table_list(%s) where local" curs . execute ( q , [ self . queue_name ] ) rows = curs . fetchall ( ) db . commit ( ) res = { } names = [ ] for row in rows : t = ATable ( row ) res [ t . table_name ] = t names . append ( t . table_name ) return res , names