SetEntry is the equivalent of Txn.SetEntry.
(e *Entry)
| 140 | |
| 141 | // SetEntry is the equivalent of Txn.SetEntry. |
| 142 | func (wb *WriteBatch) SetEntry(e *Entry) error { |
| 143 | wb.Lock() |
| 144 | defer wb.Unlock() |
| 145 | return wb.handleEntry(e) |
| 146 | } |
| 147 | |
| 148 | // Set is equivalent of Txn.Set(). |
| 149 | func (wb *WriteBatch) Set(k, v []byte) error { |
no test coverage detected