Update docs Sqlstorage

Update doc for clear function.
This commit is contained in:
remithomas
2016-05-25 10:38:29 -04:00
parent ae4d7a2f1d
commit 57f39e17a4

View File

@ -144,6 +144,11 @@ export class SqlStorage extends StorageEngine {
return this.query('delete from kv where key = ?', [key]);
}
/**
* Remove the value in the database for the given key.
* @param {string} key the key
* @return {Promise} that resolves or rejects with an object of the form { tx: Transaction, res: Result (or err)}
*/
clear(): Promise<any> {
return this.query('delete from kv');
}