Delete removes a key-value pair from the write batch. This operation does not immediately delete from the database.
(key []byte)
| 14 | // Delete removes a key-value pair from the write batch. |
| 15 | // This operation does not immediately delete from the database. |
| 16 | func (w *WriteBatch) Delete(key []byte) { |
| 17 | _ = w.db.Delete(key) |
| 18 | } |
| 19 | |
| 20 | // Commit writes the batch's operations to the database. |
| 21 | // It returns an error if the commit fails. |
nothing calls this directly
no outgoing calls
no test coverage detected