Mercurial > sqlpython
comparison mysqlpy.py @ 64:1a52de2c541e
minor tweaks
author | catherine@cordelia |
---|---|
date | Mon, 07 Apr 2008 09:37:55 -0400 |
parents | de6278a3bf53 |
children | 047f82acdc8f |
comparison
equal
deleted
inserted
replaced
63:16618ff91c63 | 64:1a52de2c541e |
---|---|
91 | 91 |
92 def do_load(self,args): | 92 def do_load(self,args): |
93 '''Runs query_load10g defined above, to display OS load on cluster nodes (10gRAC)''' | 93 '''Runs query_load10g defined above, to display OS load on cluster nodes (10gRAC)''' |
94 self.do_select(self.query_load10g) | 94 self.do_select(self.query_load10g) |
95 | 95 |
96 def do_himom(self,args): | |
97 '''greets your mom''' | |
98 print 'hi mom' | |
99 | |
96 def do_db(self,args,filepath='pass.txt'): | 100 def do_db(self,args,filepath='pass.txt'): |
97 '''Exec do_connect to db_alias in args (credentials form the file pass.txt) ''' | 101 '''Exec do_connect to db_alias in args (credentials form the file pass.txt) ''' |
98 f = open(filepath,'r') | 102 f = open(filepath,'r') |
99 connectstr = f.readline().strip() +'@'+args | 103 connectstr = f.readline().strip() +'@'+args |
100 self.do_connect(connectstr) | 104 self.do_connect(connectstr) |