diff --git a/api/@ohos.data.rdb.d.ts b/api/@ohos.data.rdb.d.ts index 07b0460791fdae4e043d12db87568410b44bfe39..245b29e018d7c352380f1672dcd05c2c3a88fb88 100644 --- a/api/@ohos.data.rdb.d.ts +++ b/api/@ohos.data.rdb.d.ts @@ -117,6 +117,18 @@ declare namespace rdb { insert(table: string, values: ValuesBucket, callback: AsyncCallback): void; insert(table: string, values: ValuesBucket): Promise; + /** + * Inserts a batch of data into the target table. + * + * @since 9 + * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core + * @param table Indicates the target table. + * @param values Indicates the rows of data to be inserted into the table. + * @return Returns the number of values that were inserted if the operation is successful; returns -1 otherwise. + */ + batchInsert(table: string, values: Array, callback: AsyncCallback): void; + batchInsert(table: string, values: Array): Promise; + /** * Updates data in the database based on a a specified instance object of rdbPredicates. *