Put adds a key-value pair to the write batch. This operation does not immediately write to the database.
(key, value []byte)
| 8 | // Put adds a key-value pair to the write batch. |
| 9 | // This operation does not immediately write to the database. |
| 10 | func (w *WriteBatch) Put(key, value []byte) { |
| 11 | _ = w.db.Put(key, value) |
| 12 | } |
| 13 | |
| 14 | // Delete removes a key-value pair from the write batch. |
| 15 | // This operation does not immediately delete from the database. |
nothing calls this directly
no outgoing calls
no test coverage detected