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 
18 {
19 public:
20  explicit transaction(session& sql);
21 
22  ~transaction();
23 
24  void commit();
25  void rollback();
26 
27 private:
28  bool handled_;
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
#define SOCI_DECL
Definition: soci-config.h:31
session & sql_
Definition: transaction.h:29


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