From 6e8e8e7a785c40cdd5d04d6cd5714eecffca951a Mon Sep 17 00:00:00 2001 From: PaDaBoo Date: Fri, 30 Dec 2022 15:06:23 +0800 Subject: [PATCH] update rdb, relationalStore version lable Signed-off-by: PaDaBoo --- .../reference/apis/js-apis-data-rdb.md | 32 +++++++++---------- .../apis/js-apis-data-relationalStore.md | 4 +-- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-data-rdb.md b/zh-cn/application-dev/reference/apis/js-apis-data-rdb.md index b24dc06a9d..dc8547e5a4 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-data-rdb.md +++ b/zh-cn/application-dev/reference/apis/js-apis-data-rdb.md @@ -377,7 +377,7 @@ let predicates = new data_rdb.RdbPredicates("EMPLOYEE") predicates.inDevices(['12345678abcde']) ``` -### inAllDevices +### inAllDevices8+ inAllDevices(): RdbPredicates @@ -1161,7 +1161,7 @@ predicates.notIn("NAME", ["Lisa", "Rose"]) 提供管理关系数据库(RDB)方法的接口。 -在使用以下相关接口前,请使用[executeSql](#executesql)接口初始化数据库表结构和相关数据,具体可见[关系型数据库开发指导](../../database/database-relational-guidelines.md)。 +在使用以下相关接口前,请使用[executeSql](#executesql8)接口初始化数据库表结构和相关数据,具体可见[关系型数据库开发指导](../../database/database-relational-guidelines.md)。 ### insert @@ -1539,7 +1539,7 @@ query(predicates: RdbPredicates, columns?: Array<string>):Promise<Resul }) ``` -### querySql +### querySql8+ querySql(sql: string, bindArgs: Array<ValueType>, callback: AsyncCallback<ResultSet>):void @@ -1568,7 +1568,7 @@ rdbStore.querySql("SELECT * FROM EMPLOYEE CROSS JOIN BOOK WHERE BOOK.NAME = ?", }) ``` -### querySql +### querySql8+ querySql(sql: string, bindArgs?: Array<ValueType>):Promise<ResultSet> @@ -1601,7 +1601,7 @@ promise.then((resultSet) => { }) ``` -### executeSql +### executeSql8+ executeSql(sql: string, bindArgs: Array<ValueType>, callback: AsyncCallback<void>):void @@ -1630,7 +1630,7 @@ rdbStore.executeSql(SQL_CREATE_TABLE, null, function(err) { }) ``` -### executeSql +### executeSql8+ executeSql(sql: string, bindArgs?: Array<ValueType>):Promise<void> @@ -1663,7 +1663,7 @@ promise.then(() => { }) ``` -### beginTransaction +### beginTransaction8+ beginTransaction():void @@ -1690,7 +1690,7 @@ data_rdb.getRdbStore(context, STORE_CONFIG, 1, async function (err, rdbStore) { }) ``` -### commit +### commit8+ commit():void @@ -1717,7 +1717,7 @@ data_rdb.getRdbStore(context, STORE_CONFIG, 1, async function (err, rdbStore) { }) ``` -### rollBack +### rollBack8+ rollBack():void @@ -1749,7 +1749,7 @@ data_rdb.getRdbStore(context, STORE_CONFIG, 1, async function (err, rdbStore) { }) ``` -### setDistributedTables +### setDistributedTables8+ setDistributedTables(tables: Array<string>, callback: AsyncCallback<void>): void @@ -1778,7 +1778,7 @@ rdbStore.setDistributedTables(["EMPLOYEE"], function (err) { }) ``` -### setDistributedTables +### setDistributedTables8+ setDistributedTables(tables: Array<string>): Promise<void> @@ -1811,7 +1811,7 @@ promise.then(() => { }) ``` -### obtainDistributedTableName +### obtainDistributedTableName8+ obtainDistributedTableName(device: string, table: string, callback: AsyncCallback<string>): void @@ -1841,7 +1841,7 @@ rdbStore.obtainDistributedTableName("12345678abcde", "EMPLOYEE", function (err, }) ``` -### obtainDistributedTableName +### obtainDistributedTableName8+ obtainDistributedTableName(device: string, table: string): Promise<string> @@ -1910,7 +1910,7 @@ rdbStore.sync(data_rdb.SyncMode.SYNC_MODE_PUSH, predicates, function (err, resul }) ``` -### sync +### sync8+ sync(mode: SyncMode, predicates: RdbPredicates): Promise<Array<[string, number]>> @@ -1949,7 +1949,7 @@ promise.then((result) =>{ }) ``` -### on('dataChange') +### on('dataChange')8+ on(event: 'dataChange', type: SubscribeType, observer: Callback<Array<string>>): void @@ -1980,7 +1980,7 @@ try { } ``` -### off('dataChange') +### off('dataChange')8+ off(event:'dataChange', type: SubscribeType, observer: Callback<Array<string>>): void diff --git a/zh-cn/application-dev/reference/apis/js-apis-data-relationalStore.md b/zh-cn/application-dev/reference/apis/js-apis-data-relationalStore.md index 9c740e931b..875b53a658 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-data-relationalStore.md +++ b/zh-cn/application-dev/reference/apis/js-apis-data-relationalStore.md @@ -1269,13 +1269,13 @@ predicates.notIn("NAME", ["Lisa", "Rose"]) 在使用以下相关接口前,请使用[executeSql](#executesql)接口初始化数据库表结构和相关数据,具体可见[关系型数据库开发指导](../../database/database-relational-guidelines.md)。 -### 属性 +### 属性10+ **系统能力:** SystemCapability.DistributedDataManager.RelationalStore.Core | 名称 | 类型 | 必填 | 说明 | | ------------ | ----------- | ---- | -------------------------------- | -| openStatus | number | 是 | 获取RdbStore的状态。 | +| openStatus10+ | number | 是 | 获取RdbStore的状态。 | ### insert -- GitLab