mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 21:15:24 +08:00
Update docs Sqlstorage
Update doc for clear function.
This commit is contained in:
@ -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');
|
||||
}
|
||||
|
Reference in New Issue
Block a user