db2/factory.cpp
Go to the documentation of this file.
1 //
2 // Copyright (C) 2011-2013 Denis Chapligin
3 // Copyright (C) 2004-2006 Maciej Sobczak, Stephen Hutton, David Courtney
4 // Distributed under the Boost Software License, Version 1.0.
5 // (See accompanying file LICENSE_1_0.txt or copy at
6 // http://www.boost.org/LICENSE_1_0.txt)
7 //
8 
9 #define SOCI_DB2_SOURCE
10 #include "soci-db2.h"
11 #include <backend-loader.h>
12 
13 using namespace soci;
14 using namespace soci::details;
15 
16 
17 // concrete factory for ODBC concrete strategies
19  connection_parameters const & parameters) const
20 {
21  return new db2_session_backend(parameters);
22 }
23 
25 
26 extern "C"
27 {
28 
29 // for dynamic backend loading
31 {
32  return &soci::db2;
33 }
34 
36 {
38 }
39 
40 } // extern "C"
#define SOCI_DB2_DECL
Definition: soci-db2.h:24
db2_session_backend * make_session(connection_parameters const &parameters) const
Definition: db2/factory.cpp:18
SOCI_DECL void register_backend(std::string const &name, std::string const &shared_object=std::string())
SOCI_DB2_DECL void register_factory_db2()
Definition: db2/factory.cpp:35
SOCI_DB2_DECL backend_factory const * factory_db2()
Definition: db2/factory.cpp:30
SOCI_DB2_DECL db2_backend_factory const db2
Definition: db2/factory.cpp:24
std::vector< ISM::CombinatorialTrainerParameters > parameters


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