@@ -66,7 +66,7 @@ Obtains a relational database \(RDB\) store. You can set parameters for the RDB
```
import dataRdb from '@ohos.data.rdb'
const STORE_CONFIG = { name: "RdbTest.db", encryptKey: new Uint8Array([1, 2])}
const STORE_CONFIG = { name: "RdbTest.db"}
const SQL_CREATE_TABLE = "CREATE TABLE IF NOT EXISTS EMPLOYEE (ID INTEGER PRIMARY KEY AUTOINCREMENT, NAME TEXT NOT NULL, AGE INTEGER, SALARY REAL, CODES BLOB)"
dataRdb.getRdbStore(STORE_CONFIG, 1, function (err, rdbStore) {
rdbStore.executeSql(SQL_CREATE_TABLE)
...
...
@@ -2557,114 +2557,6 @@ Runs the SQL statement that contains the specified parameters but does not retur
<td class="cellrowborder" valign="top" width="82.99%" headers="mcps1.1.3.1.2 "><p id="p1144334114312"><a name="p1144334114312"></a><a name="p1144334114312"></a>Promise used to return the result.</p>
</td>
</tr>
</tbody>
</table>
- Example
```
var newKey = new Uint8Array([1, 2])
let promise = rdbStore.changeEncryptKey(newKey)
promise.then((ret) => {
console.info(TAG + "result is " + ret)})
```
## StoreConfig<a name="section957124521217"></a>
Manages the configuration of an RDB store.
...
...
@@ -2689,14 +2581,6 @@ Manages the configuration of an RDB store.
<tdclass="cellrowborder"valign="top"width="61.29%"headers="mcps1.1.5.1.4 "><pid="p07061811011"><aname="p07061811011"></a><aname="p07061811011"></a>Key used to encrypt the RDB store. If a key is added during the creation of an RDB store, the key is required each time you open the RDB store.</p>