On Mon, 11 Feb 2013 13:13:44 +0000 Mateusz Loskot <[email protected]> wrote:
ML> Yet another proposal open for comments: ML> ML> What about using the little Encapsulated Context pattern? ... ML> Implementation options: ML> ML> 1) Keep current soci::session interface for backward compatibility, ML> add new ctor and open() taking the context - less intrusive, good for SOCI 3.2.0 ML> ML> 2) Replace current ctor/open() with single new ones taking only the ML> context object, ML> this could be practical for SOCI 4.0.0 which may no longer be ML> compatible with SOCI 3.x. ML> ML> The context/environment could have implicit ctor taking ML> (backend_factory, connection_string) ML> so old way of calling is also available. Hello again, Better late than never: I've finally implemented the above (option (1)), see https://github.com/SOCI/soci/pull/98 I couldn't test DB2 backend compilation (where can I get the required headers/libraries?) but I'm relatively confident that it should continue to compile and work as the changes are pretty minimal. The other backends seem to work, see https://travis-ci.org/SOCI/soci/builds/5345893 Any comments welcome, as usual. TIA! VZ
pgp5uCgzzlJO3.pgp
Description: PGP signature
------------------------------------------------------------------------------ Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the endpoint security space. For insight on selecting the right partner to tackle endpoint security challenges, access the full report. http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________ soci-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/soci-users
