diff --git a/api/@ohos.data.rdb.d.ts b/api/@ohos.data.rdb.d.ts index df961acd5e8219025808a1de1473dfe0e5da5ad3..eb0813c4ac98938808af1dbcfca51ac3eb1236f5 100644 --- a/api/@ohos.data.rdb.d.ts +++ b/api/@ohos.data.rdb.d.ts @@ -145,8 +145,41 @@ declare namespace rdb { * @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; + changeEncryptKey(newEncryptKey:Uint8Array, callback: AsyncCallback):void; + changeEncryptKey(newEncryptKey:Uint8Array): Promise; + + /** + * beginTransaction before excute your sql + * + * @note N/A + * @since 8 + * @sysCap SystemCapability.Data.DATA_APPDATAMGR + * @devices phone, tablet, tv, wearable, car + */ + beginTransaction(callback: AsyncCallback):void; + beginTransaction(): Promise; + + /** + * commit the the sql you have excuted. + * + * @note N/A + * @since 8 + * @sysCap SystemCapability.Data.DATA_APPDATAMGR + * @devices phone, tablet, tv, wearable, car + */ + commit(callback: AsyncCallback):void; + commit(): Promise; + + /** + * roll back the sql you have already excuted + * + * @note N/A + * @since 8 + * @sysCap SystemCapability.Data.DATA_APPDATAMGR + * @devices phone, tablet, tv, wearable, car + */ + rollBack(callback: AsyncCallback):void; + rollBack(): Promise; } /**