Main Page
Namespaces
Classes
Files
File List
File Members
libism
ISM
soci
src
backends
mysql
mysql/factory.cpp
Go to the documentation of this file.
1
//
2
// Copyright (C) 2004-2006 Maciej Sobczak, Stephen Hutton
3
// MySQL backend copyright (C) 2006 Pawel Aleksander Fedorynski
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_MYSQL_SOURCE
10
#include "
soci-mysql.h
"
11
#include <
backend-loader.h
>
12
#include <ciso646>
13
14
#ifdef _MSC_VER
15
#pragma warning(disable:4355)
16
#endif
17
18
using namespace
soci
;
19
using namespace
soci::details
;
20
21
22
// concrete factory for MySQL concrete strategies
23
mysql_session_backend
*
mysql_backend_factory::make_session
(
24
connection_parameters
const
&
parameters
)
const
25
{
26
return
new
mysql_session_backend
(parameters);
27
}
28
29
mysql_backend_factory
const
soci::mysql
;
30
31
extern
"C"
32
{
33
34
// for dynamic backend loading
35
SOCI_MYSQL_DECL
backend_factory
const
*
factory_mysql
()
36
{
37
return
&
soci::mysql
;
38
}
39
40
SOCI_MYSQL_DECL
void
register_factory_mysql
()
41
{
42
soci::dynamic_backends::register_backend
(
"mysql"
, soci::mysql);
43
}
44
45
}
// extern "C"
soci::details
Definition:
db2/common.h:15
backend-loader.h
soci::dynamic_backends::register_backend
SOCI_DECL void register_backend(std::string const &name, std::string const &shared_object=std::string())
Definition:
backend-loader.cpp:287
soci-mysql.h
soci::factory_mysql
SOCI_MYSQL_DECL backend_factory const * factory_mysql()
Definition:
mysql/factory.cpp:35
SOCI_MYSQL_DECL
#define SOCI_MYSQL_DECL
Definition:
soci-mysql.h:24
soci::connection_parameters
Definition:
connection-parameters.h:22
soci::mysql
SOCI_MYSQL_DECL mysql_backend_factory const mysql
Definition:
mysql/factory.cpp:29
soci::register_factory_mysql
SOCI_MYSQL_DECL void register_factory_mysql()
Definition:
mysql/factory.cpp:40
soci::mysql_backend_factory
Definition:
soci-mysql.h:253
parameters
std::vector< ISM::CombinatorialTrainerParameters > parameters
Definition:
combinatorialTrainerEvaluator.cpp:39
soci::mysql_session_backend
Definition:
soci-mysql.h:231
soci
Definition:
db2/common.h:15
soci::mysql_backend_factory::make_session
virtual mysql_session_backend * make_session(connection_parameters const ¶meters) const
Definition:
mysql/factory.cpp:23
soci::backend_factory
Definition:
soci-backend.h:265
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