Main Page
Namespaces
Classes
Files
File List
File Members
libism
ISM
soci
src
backends
empty
backends/empty/statement.cpp
Go to the documentation of this file.
1
//
2
// Copyright (C) 2004-2006 Maciej Sobczak, Stephen Hutton
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_EMPTY_SOURCE
9
#include "
soci-empty.h
"
10
11
#ifdef _MSC_VER
12
#pragma warning(disable:4355)
13
#endif
14
15
using namespace
soci
;
16
using namespace
soci::details
;
17
18
19
empty_statement_backend::empty_statement_backend
(
empty_session_backend
&
session
)
20
: session_(session)
21
{
22
}
23
24
void
empty_statement_backend::alloc
()
25
{
26
// ...
27
}
28
29
void
empty_statement_backend::clean_up
()
30
{
31
// ...
32
}
33
34
void
empty_statement_backend::prepare
(std::string
const
&
/* query */
,
35
statement_type
/* eType */
)
36
{
37
// ...
38
}
39
40
statement_backend::exec_fetch_result
41
empty_statement_backend::execute
(
int
/* number */
)
42
{
43
// ...
44
return
ef_success
;
45
}
46
47
statement_backend::exec_fetch_result
48
empty_statement_backend::fetch
(
int
/* number */
)
49
{
50
// ...
51
return
ef_success
;
52
}
53
54
long
long
empty_statement_backend::get_affected_rows
()
55
{
56
// ...
57
return
-1;
58
}
59
60
int
empty_statement_backend::get_number_of_rows
()
61
{
62
// ...
63
return
1;
64
}
65
66
std::string
empty_statement_backend::rewrite_for_procedure_call
(
67
std::string
const
&query)
68
{
69
return
query;
70
}
71
72
int
empty_statement_backend::prepare_for_describe
()
73
{
74
// ...
75
return
0;
76
}
77
78
void
empty_statement_backend::describe_column
(
int
/* colNum */
,
79
data_type
&
/* type */
, std::string &
/* columnName */
)
80
{
81
// ...
82
}
83
84
empty_standard_into_type_backend
*
empty_statement_backend::make_into_type_backend
()
85
{
86
return
new
empty_standard_into_type_backend
(*
this
);
87
}
88
89
empty_standard_use_type_backend
*
empty_statement_backend::make_use_type_backend
()
90
{
91
return
new
empty_standard_use_type_backend
(*
this
);
92
}
93
94
empty_vector_into_type_backend
*
95
empty_statement_backend::make_vector_into_type_backend
()
96
{
97
return
new
empty_vector_into_type_backend
(*
this
);
98
}
99
100
empty_vector_use_type_backend
*
empty_statement_backend::make_vector_use_type_backend
()
101
{
102
return
new
empty_vector_use_type_backend
(*
this
);
103
}
soci::empty_standard_use_type_backend
Definition:
soci-empty.h:71
soci::empty_statement_backend::execute
exec_fetch_result execute(int number)
Definition:
backends/empty/statement.cpp:41
soci::empty_vector_use_type_backend
Definition:
soci-empty.h:88
soci::details
Definition:
db2/common.h:15
soci::empty_standard_into_type_backend
Definition:
soci-empty.h:36
soci-empty.h
soci::empty_session_backend
Definition:
soci-empty.h:155
soci::empty_statement_backend::clean_up
void clean_up()
Definition:
backends/empty/statement.cpp:29
soci::data_type
data_type
Definition:
soci-backend.h:22
soci::empty_statement_backend::alloc
void alloc()
Definition:
backends/empty/statement.cpp:24
soci::details::statement_backend::ef_success
Definition:
soci-backend.h:163
soci::empty_statement_backend::describe_column
void describe_column(int colNum, data_type &dtype, std::string &columnName)
Definition:
backends/empty/statement.cpp:78
soci::details::statement_backend::exec_fetch_result
exec_fetch_result
Definition:
soci-backend.h:161
soci::empty_statement_backend::make_into_type_backend
empty_standard_into_type_backend * make_into_type_backend()
Definition:
backends/empty/statement.cpp:84
soci::empty_statement_backend::make_vector_use_type_backend
empty_vector_use_type_backend * make_vector_use_type_backend()
Definition:
backends/empty/statement.cpp:100
soci::session
Definition:
session.h:40
soci::empty_statement_backend::prepare
void prepare(std::string const &query, details::statement_type eType)
Definition:
backends/empty/statement.cpp:34
soci::empty_vector_into_type_backend
Definition:
soci-empty.h:52
soci::empty_statement_backend::fetch
exec_fetch_result fetch(int number)
Definition:
backends/empty/statement.cpp:48
soci::empty_statement_backend::make_use_type_backend
empty_standard_use_type_backend * make_use_type_backend()
Definition:
backends/empty/statement.cpp:89
soci::empty_statement_backend::make_vector_into_type_backend
empty_vector_into_type_backend * make_vector_into_type_backend()
Definition:
backends/empty/statement.cpp:95
soci::empty_statement_backend::empty_statement_backend
empty_statement_backend(empty_session_backend &session)
Definition:
backends/empty/statement.cpp:19
soci::empty_statement_backend::rewrite_for_procedure_call
std::string rewrite_for_procedure_call(std::string const &query)
Definition:
backends/empty/statement.cpp:66
soci::empty_statement_backend::prepare_for_describe
int prepare_for_describe()
Definition:
backends/empty/statement.cpp:72
soci::empty_statement_backend::get_affected_rows
long long get_affected_rows()
Definition:
backends/empty/statement.cpp:54
soci
Definition:
db2/common.h:15
soci::details::statement_type
statement_type
Definition:
soci-backend.h:52
soci::empty_statement_backend::get_number_of_rows
int get_number_of_rows()
Definition:
backends/empty/statement.cpp:60
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:41