// file : odb/mysql/connection-factory.cxx // author : Boris Kolpackov // copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC // license : GNU GPL v2; see accompanying LICENSE file #include namespace odb { namespace mysql { // // connection_factory // connection_factory:: ~connection_factory () { } // // new_connection_factory // shared_ptr new_connection_factory:: connect () { return shared_ptr (new (shared) connection (*db_)); } void new_connection_factory:: database (database_type& db) { db_ = &db; } } }