Mercurial > hg > orthanc-databases
comparison Framework/PostgreSQL/PostgreSQLTransaction.h @ 216:fbb52129158a
TransactionType given to PostgreSQLTransaction constructor
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 26 Mar 2021 17:47:56 +0100 |
parents | ab96698c73a3 |
children | 35598014f140 |
comparison
equal
deleted
inserted
replaced
215:b40b30075c51 | 216:fbb52129158a |
---|---|
35 { | 35 { |
36 private: | 36 private: |
37 PostgreSQLDatabase& database_; | 37 PostgreSQLDatabase& database_; |
38 bool isOpen_; | 38 bool isOpen_; |
39 | 39 |
40 void Begin(TransactionType type); | |
41 | |
40 public: | 42 public: |
41 explicit PostgreSQLTransaction(PostgreSQLDatabase& database); | 43 explicit PostgreSQLTransaction(PostgreSQLDatabase& database, |
44 TransactionType type); | |
42 | 45 |
43 ~PostgreSQLTransaction(); | 46 ~PostgreSQLTransaction(); |
44 | 47 |
45 virtual bool IsImplicit() const ORTHANC_OVERRIDE | 48 virtual bool IsImplicit() const ORTHANC_OVERRIDE |
46 { | 49 { |
47 return false; | 50 return false; |
48 } | 51 } |
49 | 52 |
50 void Begin(); | |
51 | |
52 virtual void Rollback() ORTHANC_OVERRIDE; | 53 virtual void Rollback() ORTHANC_OVERRIDE; |
53 | 54 |
54 virtual void Commit() ORTHANC_OVERRIDE; | 55 virtual void Commit() ORTHANC_OVERRIDE; |
55 | 56 |
56 virtual IResult* Execute(IPrecompiledStatement& statement, | 57 virtual IResult* Execute(IPrecompiledStatement& statement, |