From 57f39e17a4443efcd28d49f9779075b11698e722 Mon Sep 17 00:00:00 2001 From: remithomas Date: Wed, 25 May 2016 10:38:29 -0400 Subject: [PATCH] Update docs Sqlstorage Update doc for clear function. --- src/platform/storage/sql.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/platform/storage/sql.ts b/src/platform/storage/sql.ts index f0d28de01c..b54a29e96c 100644 --- a/src/platform/storage/sql.ts +++ b/src/platform/storage/sql.ts @@ -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 { return this.query('delete from kv'); }