schemadiff.py
changeset 7 685b20d2d3ab
parent 5 57cf8fdff5ed
child 9 2fcc8ef0b97d
equal deleted inserted replaced
6:4ab077c93b2d 7:685b20d2d3ab
     1 #!/usr/bin/env python3.2
     1 #!/usr/bin/env python3.2
     2 
     2 
     3 from pgtools import pgmanager, pgbrowser, pgdiff
     3 from tools import pgmanager, pgbrowser, pgdiff, toolbase
     4 from toolbase import SrcDstTool
       
     5 
     4 
     6 
     5 
     7 class SchemaDiffTool(SrcDstTool):
     6 class SchemaDiffTool(toolbase.SrcDstTool):
     8     def __init__(self):
     7     def __init__(self):
     9         SrcDstTool.__init__(self, name='schemadiff', desc='Database schema diff.')
     8         toolbase.SrcDstTool.__init__(self, name='schemadiff', desc='Database schema diff.')
    10         
     9         
    11         self.parser.add_argument('-s', dest='schema', nargs='*', help='Schema filter')
    10         self.parser.add_argument('-s', dest='schema', nargs='*', help='Schema filter')
    12         self.parser.add_argument('-t', dest='table', nargs='*', help='Table filter')
    11         self.parser.add_argument('-t', dest='table', nargs='*', help='Table filter')
    13         
    12         
    14         self.init()
    13         self.init()