1# Distributed Data Subsystem Changelog
2
3## cl.distributeddatamgr.1 Change of the API Name from Action to clearAction in the cloudData Module
4
5**Change Impact**
6
7From OpenHarmony4.0.9.3, use **clearAction()** to specify the action taken to clear the cloud data locally.
8
9**Key API/Component Changes**
10
11Before change:
12
13 ```ts
14 enum Action {
15    CLEAR_CLOUD_INFO,
16    CLEAR_CLOUD_DATA_AND_INFO
17  }
18 ```
19
20After change:
21
22 ```ts
23 enum ClearAction {
24    CLEAR_CLOUD_INFO,
25    CLEAR_CLOUD_DATA_AND_INFO
26  }
27 ```
28
29**Adaptation Guide**
30
31From OpenHarmony4.0.9.3, use **clearAction()** to specify the action taken to clear the cloud data locally.
32
33## cl.distributeddatamgr.2 Change of the API Name from clean to clear in the cloudData Module
34
35**Change Impact**
36
37From OpenHarmony4.0.9.3, use **clear()** to clear the cloud data locally.
38
39**Key API/Component Changes**
40
41Before change:
42
43 ```ts
44    static clean(
45      accountId: string,
46      appActions: { [bundleName: string]: Action },
47      callback: AsyncCallback<void>
48    ): void;
49    static clean(accountId: string, appActions: { [bundleName: string]: Action }): Promise<void>;
50 ```
51
52After change:
53
54 ```ts
55     static clear(
56      accountId: string,
57      appActions: { [bundleName: string]: ClearAction },
58      callback: AsyncCallback<void>
59    ): void;
60    static clear(accountId: string, appActions: { [bundleName: string]: ClearAction }): Promise<void>;
61 ```
62
63**Adaptation Guide**
64
65From OpenHarmony4.0.9.3, use **clear()** to clear the cloud data locally.
66
67## cl.distributeddatamgr.3 Change of "success" to "successful" in Statistic of the relationalStore Module
68
69**Change Impact**
70
71From OpenHarmony4.0.9.3, use **Statistic.successful** to indicate the number of rows that are successfully synchronized between the device and cloud.
72
73**Key API/Component Changes**
74
75The enumerated value **success** of **Statistic** is changed to **successful**.
76
77Before change:
78
79 ```ts
80  interface Statistic {
81    total: number;
82    success: number;
83    failed: number;
84    remained: number;
85  }
86 ```
87
88After change:
89
90 ```ts
91  interface Statistic {
92    total: number;
93    successful: number;
94    failed: number;
95    remained: number;
96  }
97 ```
98
99**Adaptation Guide**
100
101From OpenHarmony4.0.9.3, use **Statistic.successful** to indicate the number of rows that are successfully synchronized between the device and cloud.
102
103## cl.distributeddatamgr.4 Change of the Parameter type in setDistributedTables() from the number Type to DistributedType in the relationalStore Module
104
105**Change Impact**
106
107From OpenHarmony4.0.9.3, the type of the input parameter **type** of **setDistributedTables()** is changed from **number** to **DistributedType**.
108
109**Key API/Component Changes**
110
111Before change:
112
113 ```ts
114setDistributedTables(tables: Array<string>, type: number, config: DistributedConfig, callback: AsyncCallback<void>): void;
115setDistributedTables(tables: Array<string>, type?: number, config?: DistributedConfig): Promise<void>;
116 ```
117
118After change:
119
120 ```ts
121setDistributedTables(tables: Array<string>, type: DistributedType, config: DistributedConfig, callback: AsyncCallback<void>): void;
122setDistributedTables(tables: Array<string>, type?: DistributedType, config?: DistributedConfig): Promise<void>;
123 ```
124**Adaptation Guide**
125
126From OpenHarmony4.0.9.3, the type of the input parameter **type** of **setDistributedTables()** is changed from **number** to **DistributedType**.
127