bigtables.py
changeset 5 57cf8fdff5ed
parent 2 efee419b7a2d
child 7 685b20d2d3ab
equal deleted inserted replaced
4:80634cb1c65b 5:57cf8fdff5ed
     1 #!/usr/bin/env python3.2
     1 #!/usr/bin/env python3.2
     2 
     2 
     3 from pgtools import pgbrowser
     3 from pgtools import pgbrowser
     4 from common import prettysize
     4 from common import prettysize
     5 from toolbase import ToolBase
     5 from toolbase import SimpleTool
     6 
     6 
     7 
     7 
     8 class BigTablesTool(ToolBase):
     8 class BigTablesTool(SimpleTool):
     9     def __init__(self):
     9     def __init__(self):
    10         ToolBase.__init__(self, name='bigtables', desc='List largest tables.')
    10         SimpleTool.__init__(self, name='bigtables', desc='List largest tables.')
    11         self.init()
    11         self.init()
    12 
    12 
    13     def main(self):
    13     def main(self):
    14         browser = pgbrowser.PgBrowser(self.pgm.get_conn('target'))
    14         browser = pgbrowser.PgBrowser(self.pgm.get_conn('target'))
    15 
    15