tablediff.py
changeset 35 e7f79c4a27ce
parent 34 98c7809af415
child 41 6aad5e35efe8
equal deleted inserted replaced
34:98c7809af415 35:e7f79c4a27ce
    26         dstconn = self.pgm.get_conn('dst')
    26         dstconn = self.pgm.get_conn('dst')
    27         
    27         
    28         dd = pgdatadiff.PgDataDiff(srcconn, dstconn)
    28         dd = pgdatadiff.PgDataDiff(srcconn, dstconn)
    29         
    29         
    30         for srcschema, srctable, dstschema, dsttable in self.tables():
    30         for srcschema, srctable, dstschema, dsttable in self.tables():
    31             print('Diff from [%s] %s.%s to [%s] %s.%s' % (
    31             print('-- Diff from [%s] %s.%s to [%s] %s.%s' % (
    32                 self.args.src, srcschema, srctable,
    32                 self.args.src, srcschema, srctable,
    33                 self.args.dst, dstschema, dsttable))
    33                 self.args.dst, dstschema, dsttable))
    34             
    34             
    35             if self.args.rowcount:
    35             if self.args.rowcount:
    36                 with self.pgm.cursor('src') as curs:
    36                 with self.pgm.cursor('src') as curs: