• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2025 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16function relationalStoreCustomDirTest() {
17    it(async function () {})
18
19    it(async function () {
20        let storestore = null;
21        let u8 = new Uint8Array([1, 2, 3]);
22        const valueBucket = {
23            "name": "",
24            "age": 18,
25            "salary": 100.5,
26            "blobType": u8,
27        }
28        let ret = await storestore.insert("test", valueBucket);
29    })
30
31    it(async function () {
32        const STORE_CONFIG = {
33            name: "",
34            securityLevel: data_Rdb.SecurityLevel.S1,
35            customDir: ""
36        }
37        let storestore = await data_Rdb.getRdbStore(context, STORE_CONFIG);
38        await storestore.executeSql(CREATE_TABLE_TEST, null);
39        let u8 = new Uint8Array([1, 2, 3]);
40        const valueBucket = {
41            "name": "",
42            "age": 18,
43            "salary": 100.5,
44            "blobType": u8,
45        }
46        let ret = await storestore.insert("test", valueBucket);
47    })
48}
49/* @@? 17:5 Error TypeError: Unresolved reference it */
50/* @@? 17:14 Error SyntaxError: Function expressions are not supported, use arrow functions instead */
51/* @@? 19:5 Error TypeError: This expression is not callable. */
52/* @@? 19:14 Error SyntaxError: Function expressions are not supported, use arrow functions instead */
53/* @@? 31:5 Error TypeError: This expression is not callable. */
54/* @@? 31:14 Error SyntaxError: Function expressions are not supported, use arrow functions instead */
55