| 75 | class WriteBatchItemPrinter : public WriteBatch::Handler { |
| 76 | public: |
| 77 | void Put(const Slice& key, const Slice& value) override { |
| 78 | std::string r = " put '"; |
| 79 | AppendEscapedStringTo(&r, key); |
| 80 | r += "' '"; |
| 81 | AppendEscapedStringTo(&r, value); |
| 82 | r += "'\n"; |
| 83 | dst_->Append(r); |
| 84 | } |
| 85 | void Delete(const Slice& key) override { |
| 86 | std::string r = " del '"; |
| 87 | AppendEscapedStringTo(&r, key); |
nothing calls this directly
no test coverage detected