@@ -26,13 +26,13 @@ public extension DynamoDBTable {
26
26
* Historical items exist across multiple rows. This method provides an interface to record all
27
27
* rows in a single call.
28
28
*/
29
- public func insertItemWithHistoricalRowSync< AttributesType, ItemType> ( primaryItem: TypedDatabaseItem < AttributesType , ItemType > ,
29
+ func insertItemWithHistoricalRowSync< AttributesType, ItemType> ( primaryItem: TypedDatabaseItem < AttributesType , ItemType > ,
30
30
historicalItem: TypedDatabaseItem < AttributesType , ItemType > ) throws {
31
31
try insertItemSync ( primaryItem)
32
32
try insertItemSync ( historicalItem)
33
33
}
34
34
35
- public func insertItemWithHistoricalRowAsync< AttributesType, ItemType> ( primaryItem: TypedDatabaseItem < AttributesType , ItemType > ,
35
+ func insertItemWithHistoricalRowAsync< AttributesType, ItemType> ( primaryItem: TypedDatabaseItem < AttributesType , ItemType > ,
36
36
historicalItem: TypedDatabaseItem < AttributesType , ItemType > ,
37
37
completion: @escaping ( Error ? ) -> ( ) ) throws {
38
38
try insertItemAsync ( primaryItem) { error in
@@ -48,14 +48,14 @@ public extension DynamoDBTable {
48
48
}
49
49
}
50
50
51
- public func updateItemWithHistoricalRowSync< AttributesType, ItemType> ( primaryItem: TypedDatabaseItem < AttributesType , ItemType > ,
51
+ func updateItemWithHistoricalRowSync< AttributesType, ItemType> ( primaryItem: TypedDatabaseItem < AttributesType , ItemType > ,
52
52
existingItem: TypedDatabaseItem < AttributesType , ItemType > ,
53
53
historicalItem: TypedDatabaseItem < AttributesType , ItemType > ) throws {
54
54
try updateItemSync ( newItem: primaryItem, existingItem: existingItem)
55
55
try insertItemSync ( historicalItem)
56
56
}
57
57
58
- public func updateItemWithHistoricalRowAsync< AttributesType, ItemType> ( primaryItem: TypedDatabaseItem < AttributesType , ItemType > ,
58
+ func updateItemWithHistoricalRowAsync< AttributesType, ItemType> ( primaryItem: TypedDatabaseItem < AttributesType , ItemType > ,
59
59
existingItem: TypedDatabaseItem < AttributesType , ItemType > ,
60
60
historicalItem: TypedDatabaseItem < AttributesType , ItemType > ,
61
61
completion: @escaping ( Error ? ) -> ( ) ) throws {
@@ -84,7 +84,7 @@ public extension DynamoDBTable {
84
84
* Clobbering a historical item requires knowledge of existing rows to accurately record
85
85
* historical data.
86
86
*/
87
- public func clobberItemWithHistoricalRowSync< AttributesType, ItemType> (
87
+ func clobberItemWithHistoricalRowSync< AttributesType, ItemType> (
88
88
primaryItemProvider: ( TypedDatabaseItem < AttributesType , ItemType > ? ) -> TypedDatabaseItem < AttributesType , ItemType > ,
89
89
historicalItemProvider: ( TypedDatabaseItem < AttributesType , ItemType > ) -> TypedDatabaseItem < AttributesType , ItemType > ,
90
90
withRetries retries: Int = 10 ) throws {
@@ -132,7 +132,7 @@ public extension DynamoDBTable {
132
132
* Clobbering a historical item requires knowledge of existing rows to accurately record
133
133
* historical data.
134
134
*/
135
- public func clobberItemWithHistoricalRowAsync< AttributesType, ItemType> (
135
+ func clobberItemWithHistoricalRowAsync< AttributesType, ItemType> (
136
136
primaryItemProvider: @escaping ( TypedDatabaseItem < AttributesType , ItemType > ? ) -> TypedDatabaseItem < AttributesType , ItemType > ,
137
137
historicalItemProvider: @escaping ( TypedDatabaseItem < AttributesType , ItemType > ) -> TypedDatabaseItem < AttributesType , ItemType > ,
138
138
withRetries retries: Int = 10 ,
@@ -201,7 +201,7 @@ public extension DynamoDBTable {
201
201
- primaryItemProvider: Function to provide the updated item or throw if the current item can't be updated.
202
202
- historicalItemProvider: Function to provide the historical item for the primary item.
203
203
*/
204
- public func conditionallyUpdateItemWithHistoricalRowSync< AttributesType, ItemType> (
204
+ func conditionallyUpdateItemWithHistoricalRowSync< AttributesType, ItemType> (
205
205
compositePrimaryKey: CompositePrimaryKey < AttributesType > ,
206
206
primaryItemProvider: ( TypedDatabaseItem < AttributesType , ItemType > ) throws -> TypedDatabaseItem < AttributesType , ItemType > ,
207
207
historicalItemProvider: ( TypedDatabaseItem < AttributesType , ItemType > ) -> TypedDatabaseItem < AttributesType , ItemType > ,
@@ -290,7 +290,7 @@ public extension DynamoDBTable {
290
290
- primaryItemProvider: Function to provide the updated item or throw if the current item can't be updated.
291
291
- historicalItemProvider: Function to provide the historical item for the primary item.
292
292
*/
293
- public func conditionallyUpdateItemWithHistoricalRowAsync< AttributesType, ItemType> (
293
+ func conditionallyUpdateItemWithHistoricalRowAsync< AttributesType, ItemType> (
294
294
forPrimaryKey compositePrimaryKey: CompositePrimaryKey < AttributesType > ,
295
295
primaryItemProvider: @escaping ( TypedDatabaseItem < AttributesType , ItemType > ) throws -> TypedDatabaseItem < AttributesType , ItemType > ,
296
296
historicalItemProvider: @escaping ( TypedDatabaseItem < AttributesType , ItemType > ) -> TypedDatabaseItem < AttributesType , ItemType > ,
0 commit comments