• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# oh_rdb_types.h
2
3## Overview
4
5Defines types related to data values.
6
7**File to include**: <database/rdb/oh_rdb_types.h>
8
9**Library**: libnative_rdb_ndk.z.so
10
11**System capability**: SystemCapability.DistributedDataManager.RelationalStore.Core
12
13**Since**: 18
14
15**Related module**: [RDB](capi-rdb.md)
16
17## Summary
18
19### Enums
20
21| Name                                             | typedef Keyword         | Description                    |
22| ------------------------------------------------- | ---------------------- | ------------------------ |
23| [Rdb_ConflictResolution](#rdb_conflictresolution) | Rdb_ConflictResolution | Enumerates the conflict resolution policies.|
24
25## Enum Description
26
27### Rdb_ConflictResolution
28
29```
30enum Rdb_ConflictResolution
31```
32
33**Description**
34
35Enumerates the conflict resolution policies.
36
37**Since**: 18
38
39| Enum Item               | Description                                                        |
40| --------------------- | ------------------------------------------------------------ |
41| RDB_CONFLICT_NONE = 1 | No operation is performed when a conflict occurs.                                  |
42| RDB_CONFLICT_ROLLBACK | Throw an error and roll back the transaction.                      |
43| RDB_CONFLICT_ABORT    | Throw an error and roll back the current change.                      |
44| RDB_CONFLICT_FAIL     | Throw an error and abort the current change without rolling back the modifications before the conflict.    |
45| RDB_CONFLICT_IGNORE   | Ignore the conflicted data and resolve the conflict later.                |
46| RDB_CONFLICT_REPLACE  | Delete the data and then insert the data. If the conflict persists, apply **RDB_CONFLICT_ABORT**.|
47