blob: 626ea1157c6bd4a0d7a7c3e6a7b0fded448669c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
// file : odb/mysql/transaction-impl.hxx
// author : Boris Kolpackov <boris@codesynthesis.com>
// copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
#ifndef ODB_MYSQL_TRANSACTION_IMPL_HXX
#define ODB_MYSQL_TRANSACTION_IMPL_HXX
#include <odb/shared-ptr.hxx>
#include <odb/transaction.hxx>
#include <odb/mysql/version.hxx>
#include <odb/mysql/forward.hxx>
namespace odb
{
namespace mysql
{
class transaction_impl: public odb::transaction_impl
{
protected:
friend class database;
friend class transaction;
typedef mysql::database database_type;
typedef mysql::connection connection_type;
transaction_impl (database_type&);
virtual
~transaction_impl ();
virtual void
commit ();
virtual void
rollback ();
connection_type&
connection ();
private:
shared_ptr<connection_type> connection_;
};
}
}
#include <odb/mysql/transaction-impl.ixx>
#endif // ODB_MYSQL_TRANSACTION_IMPL_HXX
|