Mercurial > sqlpython
changeset 469:acba268c93cc 1.7.1
clarified do_connect docstring
author | catherine@dellzilla |
---|---|
date | Wed, 03 Mar 2010 13:23:53 -0500 |
parents | 750da8dd1253 |
children | a40993ec8995 |
files | sqlpython/sqlpython.py |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/sqlpython/sqlpython.py Tue Mar 02 19:11:52 2010 -0500 +++ b/sqlpython/sqlpython.py Wed Mar 03 13:23:53 2010 -0500 @@ -131,7 +131,13 @@ help='Database user name to connect as')]) def do_connect(self, arg, opts): - '''Opens the DB connection''' + '''Opens the DB connection. Some sample valid connection strings: + + connect oracle://user:password@SID + connect postgres://user:password@hostname/dbname + connect user/password@SID (Oracle is the default RDBMS target) + connect --postgres --hostname=hostname dbname username + connect --mysql dbname username''' if opts.closeall: self.closeall() return