Hi all,
I've just released the latest libpqxx, version 2.6.2. This is a pretty
big one, not only fixing several bugs and coming from a new development
site, but also incorporating a radically revamped class hierarchy for
connections. Like 2.6.1 before it, however, this is considered a
development release. Test your applications thoughly before taking it
into production.
The new connection hierarchy means, among other things, that third-party
connection policies can be defined (and doing so has become much simpler
as well). Besides the revamped connection classes first implementation of
nested transactions is available (please help test this!); and finally,
the configure script now has an option to define which standard library
namespace should be used. If none is given, the script still tries to
discover the most appropriate namespace as before.
Note that the libpqxx site has moved; the latest versions are now
available at...
http://thaiopensource.org/development/libpqxx/
For those who want the details about that change to the connection
classes: besides the old connection_base, the family now also has a
separate "connectionpolicy" base class from which small and elegant policy
definition classes are derived. The components of a working connection
are finally combined by class templates "[...]connection_base" that
inherit from connection_base on the one hand, and on the other hand
contain a policy object of a subtype as specified by a template parameter.
Only the policy classes have virtual functions, and the template code
that needs to be instantiated remains minimal. Also, there are no more
virtual function calls on objects when they may be being constructed or
destructed.
This refactoring also paves the way for custom thread synchronization
hooks; classes that take of locking can simply be added to this template.
In case this all sounds terribly complicated, it is pretty much the same
that we have in the transaction hierarchy.
Jeroen
_______________________________________________
Libpqxx-general mailing list
[email protected]
http://gborg.postgresql.org/mailman/listinfo/libpqxx-general