bigtables.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 pgbrowser
     3 from tools import pgbrowser, toolbase
     4 from common import prettysize
     4 from common import prettysize
     5 from toolbase import SimpleTool
       
     6 
     5 
     7 
     6 
     8 class BigTablesTool(SimpleTool):
     7 class BigTablesTool(toolbase.SimpleTool):
     9     def __init__(self):
     8     def __init__(self):
    10         SimpleTool.__init__(self, name='bigtables', desc='List largest tables.')
     9         toolbase.SimpleTool.__init__(self, name='bigtables', desc='List largest tables.')
    11         self.init()
    10         self.init()
    12 
    11 
    13     def main(self):
    12     def main(self):
    14         browser = pgbrowser.PgBrowser(self.pgm.get_conn('target'))
    13         browser = pgbrowser.PgBrowser(self.pgm.get_conn('target'))
    15 
    14