From 813b75ae22cec5fb8fd6f192c81bfdd4c3dc0c73 Mon Sep 17 00:00:00 2001 From: lichenlong1 Date: Thu, 27 Jan 2022 09:14:49 +0800 Subject: [PATCH] description: remove JS interface Signed-off-by: lichenlong1 --- api/@ohos.data.rdb.d.ts | 28 +++++++++------------------- 1 file changed, 9 insertions(+), 19 deletions(-) diff --git a/api/@ohos.data.rdb.d.ts b/api/@ohos.data.rdb.d.ts index dfbcea11da..646c5e3165 100644 --- a/api/@ohos.data.rdb.d.ts +++ b/api/@ohos.data.rdb.d.ts @@ -150,18 +150,6 @@ declare namespace rdb { executeSql(sql: string, bindArgs: Array, callback: AsyncCallback): void; executeSql(sql: string, bindArgs?: Array): Promise; - /** - * change the encrypted key(not null) if the database is configured with encrypted key. - * - * @note N/A - * @since 8 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - * @devices phone, tablet, tv, wearable, car - * @param newEncryptKey the encrypted key is uint8 form in a vector. - */ - changeEncryptKey(newEncryptKey:Uint8Array, callback: AsyncCallback):void; - changeEncryptKey(newEncryptKey:Uint8Array): Promise; - /** * beginTransaction before excute your sql * @@ -242,14 +230,16 @@ declare namespace rdb { * @permission N/A */ interface StoreConfig { + /** + * the name of relational database. + * + * @since 7 + * @sysCap SystemCapability.Data.DATA_APPDATAMGR + * @devices phone, tablet, tv, wearable, car + * @import import data_rdb from '@ohos.data.rdb'; + * @permission N/A + */ name: string; - /** - * Indicates the encryptKey of the database file - * - * @since 8 - * @sysCap SystemCapability.Data.DATA_APPDATAMGR - */ - encryptKey: Uint8Array; } /** -- Gitee