Mercurial > sqlpython
comparison mysqlpy.py @ 65:047f82acdc8f
merging in bugfixes & pgsql additions
author | catherine@cordelia |
---|---|
date | Mon, 07 Apr 2008 09:51:18 -0400 |
parents | 1a52de2c541e 4f80329a1905 |
children | fa8c9eb8908f |
comparison
equal
deleted
inserted
replaced
64:1a52de2c541e | 65:047f82acdc8f |
---|---|
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 |
154 do_slect = do_sleect | 154 do_slect = do_sleect |
155 | 155 |
156 def run(): | 156 def run(): |
157 my=mysqlpy() | 157 my=mysqlpy() |
158 print my.__doc__ | 158 print my.__doc__ |
159 try: | |
160 my.do_connect(sys.argv[1]) | |
161 except IndexError: | |
162 pass | |
159 my.cmdloop() | 163 my.cmdloop() |
160 | 164 |
161 if __name__ == '__main__': | 165 if __name__ == '__main__': |
162 run() | 166 run() |