(key string)
| 222 | } |
| 223 | |
| 224 | func (kv *KeyValue) Delete(key string) error { |
| 225 | if kv.Gate != nil { |
| 226 | kv.Gate.Start() |
| 227 | defer kv.Gate.Done() |
| 228 | } |
| 229 | _, err := kv.DB.Exec(kv.sql("DELETE FROM /*TPRE*/rows WHERE k=?"), key) |
| 230 | return err |
| 231 | } |
| 232 | |
| 233 | // TODO(mpl): implement Wipe for each of the SQLs, as it's done for MySQL, and |
| 234 | // remove this one below. |