Mercurial > hg > orthanc
comparison OrthancFramework/Sources/SQLite/Transaction.cpp @ 4304:50b0c69b653a
continued abi
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 06 Nov 2020 16:33:52 +0100 |
parents | d25f4c0fa160 |
children | c847b0dfd255 |
comparison
equal
deleted
inserted
replaced
4303:44b53a2c0a13 | 4304:50b0c69b653a |
---|---|
58 { | 58 { |
59 connection_.RollbackTransaction(); | 59 connection_.RollbackTransaction(); |
60 } | 60 } |
61 } | 61 } |
62 | 62 |
63 bool Transaction::IsOpen() const | |
64 { | |
65 return isOpen_; | |
66 } | |
67 | |
63 void Transaction::Begin() | 68 void Transaction::Begin() |
64 { | 69 { |
65 if (isOpen_) | 70 if (isOpen_) |
66 { | 71 { |
67 throw OrthancSQLiteException(ErrorCode_SQLiteTransactionAlreadyStarted); | 72 throw OrthancSQLiteException(ErrorCode_SQLiteTransactionAlreadyStarted); |
68 } | 73 } |
69 | 74 |
70 isOpen_ = connection_.BeginTransaction(); | 75 isOpen_ = connection_.BeginTransaction(); |