Main Page
Namespaces
Classes
Files
File List
File Members
libism
ISM
soci
src
core
transaction.h
Go to the documentation of this file.
1
//
2
// Copyright (C) 2004-2008 Maciej Sobczak
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
#ifndef SOCI_TRANSACTION_H_INCLUDED
9
#define SOCI_TRANSACTION_H_INCLUDED
10
11
#include "
session.h
"
12
#include "
soci-config.h
"
13
14
namespace
soci
15
{
16
17
class
SOCI_DECL
transaction
18
{
19
public
:
20
explicit
transaction
(
session
& sql);
21
22
~
transaction
();
23
24
void
commit();
25
void
rollback();
26
27
private
:
28
bool
handled_
;
29
session
&
sql_
;
30
31
// Disable copying
32
transaction
(
transaction
const
& other);
33
transaction
& operator=(
transaction
const
& other);
34
};
35
36
}
// namespace soci
37
38
#endif // SOCI_TRANSACTION_H_INCLUDED
session.h
SOCI_DECL
#define SOCI_DECL
Definition:
soci-config.h:31
soci::transaction::sql_
session & sql_
Definition:
transaction.h:29
soci::transaction::handled_
bool handled_
Definition:
transaction.h:28
soci::session
Definition:
session.h:40
soci::transaction
Definition:
transaction.h:17
soci-config.h
soci
Definition:
db2/common.h:15
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