Set is equivalent of Txn.Set().
(k, v []byte)
| 147 | |
| 148 | // Set is equivalent of Txn.Set(). |
| 149 | func (wb *WriteBatch) Set(k, v []byte) error { |
| 150 | e := &Entry{Key: k, Value: v} |
| 151 | return wb.SetEntry(e) |
| 152 | } |
| 153 | |
| 154 | // DeleteAt is equivalent of Txn.Delete but accepts a delete timestamp. |
| 155 | func (wb *WriteBatch) DeleteAt(k []byte, ts uint64) error { |