File indexing completed on 2025-02-23 05:15:16
0001 // 0002 // Copyright (C) 2004-2006 Maciej Sobczak, Stephen Hutton, Rafal Bobrowski 0003 // Distributed under the Boost Software License, Version 1.0. 0004 // (See accompanying file LICENSE_1_0.txt or copy at 0005 // http://www.boost.org/LICENSE_1_0.txt) 0006 // 0007 0008 #define SOCI_FIREBIRD_SOURCE 0009 #include "soci/firebird/soci-firebird.h" 0010 #include "soci/backend-loader.h" 0011 0012 using namespace soci; 0013 0014 firebird_session_backend * firebird_backend_factory::make_session( 0015 connection_parameters const & parameters) const 0016 { 0017 return new firebird_session_backend(parameters); 0018 } 0019 0020 firebird_backend_factory const soci::firebird; 0021 0022 extern "C" 0023 { 0024 0025 // for dynamic backend loading 0026 SOCI_FIREBIRD_DECL backend_factory const * factory_firebird() 0027 { 0028 return &soci::firebird; 0029 } 0030 0031 SOCI_FIREBIRD_DECL void register_factory_firebird() 0032 { 0033 soci::dynamic_backends::register_backend("firebird", soci::firebird); 0034 } 0035 0036 } // extern "C"