equal
deleted
inserted
replaced
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() |