• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2024 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 
16 #ifndef OHOS_DISTRIBUTED_DATA_GDB_JS_NAPI_GDB_COMMON_H
17 #define OHOS_DISTRIBUTED_DATA_GDB_JS_NAPI_GDB_COMMON_H
18 #include <cstdint>
19 
20 namespace OHOS::GraphStoreJsKit {
21 enum ColumnType : uint32_t {
22 
23     /**
24      * GRAPH_DB_DATATYPE_LONG: means the column type of the specified column is long.
25      *
26      * @syscap
27      * @since 16
28      */
29     GRAPH_DB_DATATYPE_LONG = 0,
30 
31     /**
32      * GRAPH_DB_DATATYPE_DOUBLE: means the column type of the specified column is double.
33      *
34      * @syscap SystemCapability.DistributedDataManager.DataIntelligence.Core
35      * @since 16
36      */
37     GRAPH_DB_DATATYPE_DOUBLE,
38 
39     /**
40      * GRAPH_DB_DATATYPE_STRING: means the column type of the specified column is string.
41      *
42      * @syscap SystemCapability.DistributedDataManager.DataIntelligence.Core
43      * @since 16
44      */
45     GRAPH_DB_DATATYPE_STRING,
46 
47     /**
48      * GRAPH_DB_DATATYPE_JSONSTR: means the column type of the specified column is string with json format.
49      *
50      * @syscap SystemCapability.DistributedDataManager.DataIntelligence.Core
51      * @since 16
52      */
53     GRAPH_DB_DATATYPE_JSONSTR,
54 
55     GRAPH_DB_DATATYPE_NULL,
56 };
57 }
58 
59 #endif