DBUtils 1.0 was released on November 29, 2008.
This is the sixth public release of DBUtils.
Changes:
- Added a failures parameter for configuring the exception classes for
which the failover mechanisms is applied (as suggested by Matthew Harriger).
- Added a closeable parameter for configuring whether connections
can be closed (otherwise closing connections will be silently ignored).
- It is now possible to override defaults via the creator.dbapi
and creator.threadsafety attributes.
- Added alias method dedicated_connection for
connection(shareable=False).
- Added a version attribute to all exported classes.
- Where 0 has the meaning "unlimited", parameters can now be also
set to None instead.
- It turned out that threading.local does not work properly with
mod_wsgi, so we use the Python implementation for thread-local data
even when a faster threading.local implementation is available.
A new parameter threadlocal allows you to pass an arbitrary class
such as threading.local if you know it works in your environment.
Bugfixes and Improvements:
- In some cases, when instance initialization failed or referenced objects
were already destroyed, finalizers could throw exceptions or create infinite
recursion (problem reported by Gregory Pinero and Jehiah Czebotar).
- DBUtils now tries harder to find the underlying DB-API 2 module if only a
connection creator function is specified. This had not worked before with the
MySQLdb module (problem reported by Gregory Pinero).