Mercurial > hg > orthanc-databases
comparison Framework/PostgreSQL/PostgreSQLParameters.h @ 370:d2b5d9c92214 pg-transactions
PG: test feature: configurable transaction isolation level
author | Alain Mazy <am@osimis.io> |
---|---|
date | Wed, 22 Feb 2023 16:52:04 +0100 |
parents | 16aac0287485 |
children | 15bfd9a76f8d |
comparison
equal
deleted
inserted
replaced
369:557bc5ba3a5c | 370:d2b5d9c92214 |
---|---|
41 std::string uri_; | 41 std::string uri_; |
42 bool ssl_; | 42 bool ssl_; |
43 bool lock_; | 43 bool lock_; |
44 unsigned int maxConnectionRetries_; | 44 unsigned int maxConnectionRetries_; |
45 unsigned int connectionRetryInterval_; | 45 unsigned int connectionRetryInterval_; |
46 std::string readWriteTransactionStatement_; | |
47 std::string readOnlyTransactionStatement_; | |
46 | 48 |
47 void Reset(); | 49 void Reset(); |
48 | 50 |
49 public: | 51 public: |
50 PostgreSQLParameters(); | 52 PostgreSQLParameters(); |
123 unsigned int GetConnectionRetryInterval() const | 125 unsigned int GetConnectionRetryInterval() const |
124 { | 126 { |
125 return connectionRetryInterval_; | 127 return connectionRetryInterval_; |
126 } | 128 } |
127 | 129 |
130 void SetReadWriteTransactionStatement(const std::string& statement) | |
131 { | |
132 readWriteTransactionStatement_ = statement; | |
133 } | |
134 | |
135 void SetReadOnlyTransactionStatement(const std::string& statement) | |
136 { | |
137 readOnlyTransactionStatement_ = statement; | |
138 } | |
139 | |
140 const std::string& GetReadWriteTransactionStatement() const | |
141 { | |
142 return readWriteTransactionStatement_; | |
143 } | |
144 | |
145 const std::string& GetReadOnlyTransactionStatement() const | |
146 { | |
147 return readOnlyTransactionStatement_; | |
148 } | |
149 | |
128 void Format(std::string& target) const; | 150 void Format(std::string& target) const; |
129 }; | 151 }; |
130 } | 152 } |