Closed GoogleCodeExporter closed 9 years ago
An issue was recently opened here to request the kwargs, in order to match the
DB API
better. There were a couple of projects that would benefit from this
(SQLAlchemy was
one, I believe).
The new method doesn't actually require the connection string (str). To allow
the
keywords to be passed in any order, I've removed the special parameters
'autocommit'
and 'ansi' and simply look for them in the keyword dictionary.
This does lose the ability to pass positional parameters, which I didn't
actually
notice since I always pass them as keywords. Now that it has been pointed out,
however, I think I would like to keep it as is. I think it will be much more
readable and less restrictive. For example, with the API as is, you make calls
such as:
connect(dsn='x', user='y', ansi=True)
I have updated the documentation to reflect this. Thanks. I hope this didn't
cause
too much trouble.
Original comment by mkleehammer
on 22 Jan 2009 at 4:56
Original comment by mkleehammer
on 21 Nov 2010 at 4:44
Original issue reported on code.google.com by
sal.scoz...@gmail.com
on 22 Jan 2009 at 3:00