提交 c851a6e7 编写于 作者: P PaDoBoo

support stage context for rdb

Signed-off-by: NPaDoBoo <xuejianwu@huawei.com>
上级 29deaff8
...@@ -91,7 +91,7 @@ deleteRdbStore(context: Context, name: string, callback: AsyncCallback&lt;void&g ...@@ -91,7 +91,7 @@ deleteRdbStore(context: Context, name: string, callback: AsyncCallback&lt;void&g
``` ```
import dataRdb from '@ohos.data.rdb' import dataRdb from '@ohos.data.rdb'
const context = this.context; const context = this.context;
dataRdb.deleteRdbStore("RdbTest.db", function (err, rdbStore) { dataRdb.deleteRdbStore(context, "RdbTest.db", function (err, rdbStore) {
console.info(TAG + 'delete store done.')}) console.info(TAG + 'delete store done.')})
``` ```
...@@ -116,8 +116,10 @@ deleteRdbStore(context: Context, name: string): Promise&lt;void&gt; ...@@ -116,8 +116,10 @@ deleteRdbStore(context: Context, name: string): Promise&lt;void&gt;
``` ```
import dataRdb from '@ohos.data.rdb' import dataRdb from '@ohos.data.rdb'
const context = this.context; const context = this.context;
dataRdb.deleteRdbStore("RdbTest.db", function (err, rdbStore) { let promise = dataRdb.deleteRdbStore(context, "RdbTest.db")
console.info(TAG + 'delete store done.')}) promise.then(()=>{
console.info(TAG + 'delete store done.')
})
``` ```
## RdbPredicates ## RdbPredicates
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册