00001 // 00002 // Copyright (C) 2004-2006 Maciej Sobczak, Stephen Hutton, David Courtney 00003 // Distributed under the Boost Software License, Version 1.0. 00004 // (See accompanying file LICENSE_1_0.txt or copy at 00005 // http://www.boost.org/LICENSE_1_0.txt) 00006 // 00007 00008 #define SOCI_SQLITE3_SOURCE 00009 #include "soci-sqlite3.h" 00010 00011 #ifdef _MSC_VER 00012 #pragma warning(disable:4355) 00013 #endif 00014 00015 using namespace soci; 00016 using namespace soci::details; 00017 00018 00019 // concrete factory for Empty concrete strategies 00020 sqlite3_session_backend * sqlite3_backend_factory::make_session( 00021 std::string const &connectString) const 00022 { 00023 return new sqlite3_session_backend(connectString); 00024 } 00025 00026 sqlite3_backend_factory const soci::sqlite3; 00027 00028 extern "C" 00029 { 00030 00031 // for dynamic backend loading 00032 SOCI_SQLITE3_DECL backend_factory const * factory_sqlite3() 00033 { 00034 return &soci::sqlite3; 00035 } 00036 00037 } // extern "C"
Generated on Sun Oct 3 2010 17:42:16 for EXTRAS-SOCI by Doxygen 1.7.1