sqlite3/factory.cpp
Go to the documentation of this file.
1 //
2 // Copyright (C) 2004-2006 Maciej Sobczak, Stephen Hutton, David Courtney
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
6 //
7 
8 #define SOCI_SQLITE3_SOURCE
9 #include "soci-sqlite3.h"
10 #include <backend-loader.h>
11 
12 #ifdef _MSC_VER
13 #pragma warning(disable:4355)
14 #endif
15 
16 using namespace soci;
17 using namespace soci::details;
18 
19 // concrete factory for Empty concrete strategies
21  connection_parameters const & parameters) const
22 {
23  return new sqlite3_session_backend(parameters);
24 }
25 
27 
28 extern "C"
29 {
30 
31 // for dynamic backend loading
33 {
34  return &soci::sqlite3;
35 }
36 
38 {
39  soci::dynamic_backends::register_backend("sqlite3", soci::sqlite3);
40 }
41 
42 } // extern "C"
virtual sqlite3_session_backend * make_session(connection_parameters const &parameters) const
SOCI_SQLITE3_DECL void register_factory_sqlite3()
SOCI_SQLITE3_DECL sqlite3_backend_factory const sqlite3
SOCI_DECL void register_backend(std::string const &name, std::string const &shared_object=std::string())
#define SOCI_SQLITE3_DECL
Definition: soci-sqlite3.h:23
std::vector< ISM::CombinatorialTrainerParameters > parameters
SOCI_SQLITE3_DECL backend_factory const * factory_sqlite3()


asr_lib_ism
Author(s): Hanselmann Fabian, Heller Florian, Heizmann Heinrich, Kübler Marcel, Mehlhaus Jonas, Meißner Pascal, Qattan Mohamad, Reckling Reno, Stroh Daniel
autogenerated on Wed Jan 8 2020 04:02:40