Applies all enabled transaction options to the given transaction
| 174 | |
| 175 | // Applies all enabled transaction options to the given transaction |
| 176 | void apply(Reference<ITransaction> tr) { |
| 177 | for (const auto& [name, value] : transactionOptions.options) { |
| 178 | tr->setOption(name, value.castTo<StringRef>()); |
| 179 | } |
| 180 | } |
| 181 | |
| 182 | // Returns true if any options have been set |
| 183 | bool hasAnyOptionsEnabled() const { return !transactionOptions.options.empty(); } |
no test coverage detected