TODO(mpl): implement Wipe for each of the SQLs, as it's done for MySQL, and remove this one below.
()
| 234 | // remove this one below. |
| 235 | |
| 236 | func (kv *KeyValue) Wipe() error { |
| 237 | if kv.Gate != nil { |
| 238 | kv.Gate.Start() |
| 239 | defer kv.Gate.Done() |
| 240 | } |
| 241 | _, err := kv.DB.Exec(kv.sql("DELETE FROM /*TPRE*/rows")) |
| 242 | return err |
| 243 | } |
| 244 | |
| 245 | func (kv *KeyValue) Close() error { return kv.DB.Close() } |
| 246 |