// file : odb/tracer/database.cxx // author : Boris Kolpackov // license : GNU GPL v2; see accompanying LICENSE file #include #include namespace odb { namespace tracer { database:: ~database () { } transaction_impl* database:: begin () { return new transaction_impl (*this); } connection_ptr database:: connection () { // Go through the virtual connection_() function instead of // directly to allow overriding. // return connection_ptr ( static_cast (connection_ ())); } odb::connection* database:: connection_ () { return new (details::shared) connection_type (*this); } } }