Mercurial > hg > orthanc
comparison OrthancServer/Plugins/Engine/OrthancPluginDatabase.cpp @ 4570:648defffc8cc db-changes
new enum: TransactionType
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 08 Mar 2021 16:04:56 +0100 |
parents | 2a0f8031fb93 |
children | 9224e107d613 |
comparison
equal
deleted
inserted
replaced
4569:19ea4ecd6d9a | 4570:648defffc8cc |
---|---|
887 { | 887 { |
888 CheckSuccess(backend_.setProtectedPatient(payload_, internalId, isProtected)); | 888 CheckSuccess(backend_.setProtectedPatient(payload_, internalId, isProtected)); |
889 } | 889 } |
890 | 890 |
891 | 891 |
892 IDatabaseWrapper::ITransaction* OrthancPluginDatabase::StartTransaction() | 892 IDatabaseWrapper::ITransaction* OrthancPluginDatabase::StartTransaction(TransactionType type) |
893 { | 893 { |
894 // TODO - Take advantage of "type" | |
895 | |
894 std::unique_ptr<Transaction> transaction(new Transaction(*this)); | 896 std::unique_ptr<Transaction> transaction(new Transaction(*this)); |
895 transaction->Begin(); | 897 transaction->Begin(); |
896 return transaction.release(); | 898 return transaction.release(); |
897 } | 899 } |
898 | 900 |