comparison mysqlpy.py @ 60:4f80329a1905

loading fix
author catherine.devlin@gmail.com
date Fri, 04 Apr 2008 13:40:35 -0400
parents de6278a3bf53
children 047f82acdc8f
comparison
equal deleted inserted replaced
59:3828db4f3c94 60:4f80329a1905
7 # 'sqlplus inside python' 7 # 'sqlplus inside python'
8 # See also: http://twiki.cern.ch/twiki/bin/view/PSSGroup/SqlPython 8 # See also: http://twiki.cern.ch/twiki/bin/view/PSSGroup/SqlPython
9 # http://catherine.devlin.googlepages.com/ 9 # http://catherine.devlin.googlepages.com/
10 10
11 from sqlpyPlus import * 11 from sqlpyPlus import *
12 import binascii 12 import binascii, sys
13 13
14 class mysqlpy(sqlpyPlus): 14 class mysqlpy(sqlpyPlus):
15 ''' 15 '''
16 MySqlPy V1.3 - 'sqlplus in python' 16 MySqlPy V1.3 - 'sqlplus in python'
17 Author: Luca.Canali@cern.ch 17 Author: Luca.Canali@cern.ch
150 do_slect = do_sleect 150 do_slect = do_sleect
151 151
152 def run(): 152 def run():
153 my=mysqlpy() 153 my=mysqlpy()
154 print my.__doc__ 154 print my.__doc__
155 try:
156 my.do_connect(sys.argv[1])
157 except IndexError:
158 pass
155 my.cmdloop() 159 my.cmdloop()
156 160
157 if __name__ == '__main__': 161 if __name__ == '__main__':
158 run() 162 run()