• 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 
16 /**
17  * @addtogroup RDB
18  * @{
19  *
20  * @brief The relational database (RDB) store manages data based on relational models.
21  * With the underlying SQLite database, the RDB store provides a complete mechanism for managing local databases.
22  * To satisfy different needs in complicated scenarios, the RDB store offers a series of APIs for performing operations
23  * such as adding, deleting, modifying, and querying data, and supports direct execution of SQL statements.
24  *
25  * @since 10
26  */
27 
28 /**
29  * @file oh_rdb_types.h
30  *
31  * @brief Provides type define related to the data value.
32  *
33  * @kit ArkData
34  * @library libnative_rdb_ndk.z.so
35  * @syscap SystemCapability.DistributedDataManager.RelationalStore.Core
36  *
37  * @since 18
38  */
39 
40 #ifndef OH_RDB_TYPES_H
41 #define OH_RDB_TYPES_H
42 
43 #ifdef __cplusplus
44 extern "C" {
45 #endif
46 
47 /**
48  * @brief Describe the security area of the database.
49  *
50  * @since 18
51  */
52 typedef enum Rdb_ConflictResolution {
53     /**
54      * @brief Implements no operation when conflict occurs.
55      */
56     RDB_CONFLICT_NONE = 1,
57     /**
58      * @brief Implements rollback operation when conflict occurs.
59      */
60     RDB_CONFLICT_ROLLBACK,
61     /**
62      * @brief Implements abort operation when conflict occurs.
63      */
64     RDB_CONFLICT_ABORT,
65     /**
66      * @brief Implements fail operation when conflict occurs.
67      */
68     RDB_CONFLICT_FAIL,
69     /**
70      * @brief Implements ignore operation when conflict occurs.
71      */
72     RDB_CONFLICT_IGNORE,
73     /**
74      * @brief Implements replace operation when conflict occurs.
75      */
76     RDB_CONFLICT_REPLACE,
77 } Rdb_ConflictResolution;
78 
79 #ifdef __cplusplus
80 };
81 #endif
82 #endif
83 /** @} */