comparison OrthancServer/Sources/Database/SQLiteDatabaseWrapper.h @ 4570:648defffc8cc db-changes

new enum: TransactionType
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 08 Mar 2021 16:04:56 +0100
parents 5b929e6b3c36
children bec74e29f86b
comparison
equal deleted inserted replaced
4569:19ea4ecd6d9a 4570:648defffc8cc
59 public Compatibility::IGetChildrenMetadata, 59 public Compatibility::IGetChildrenMetadata,
60 public Compatibility::ILookupResourceAndParent, 60 public Compatibility::ILookupResourceAndParent,
61 public Compatibility::ISetResourcesContent 61 public Compatibility::ISetResourcesContent
62 { 62 {
63 private: 63 private:
64 class Transaction; 64 class ReadOnlyTransaction;
65 class ReadWriteTransaction;
65 class LookupFormatter; 66 class LookupFormatter;
66 67
67 IDatabaseListener* listener_; 68 IDatabaseListener* listener_;
68 SQLite::Connection db_; 69 SQLite::Connection db_;
69 Internals::SignalRemainingAncestor* signalRemainingAncestor_; 70 Internals::SignalRemainingAncestor* signalRemainingAncestor_;
122 ORTHANC_OVERRIDE; 123 ORTHANC_OVERRIDE;
123 124
124 virtual void GetLastChange(std::list<ServerIndexChange>& target /*out*/) 125 virtual void GetLastChange(std::list<ServerIndexChange>& target /*out*/)
125 ORTHANC_OVERRIDE; 126 ORTHANC_OVERRIDE;
126 127
127 virtual IDatabaseWrapper::ITransaction* StartTransaction() 128 virtual IDatabaseWrapper::ITransaction* StartTransaction(TransactionType type)
128 ORTHANC_OVERRIDE; 129 ORTHANC_OVERRIDE;
129 130
130 virtual void FlushToDisk() 131 virtual void FlushToDisk()
131 ORTHANC_OVERRIDE 132 ORTHANC_OVERRIDE
132 { 133 {