You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// - keyParams: Dictionary that represents primary key, or primary and sort key, e.g `["id": "012345"]`, or `["id": "1", "name": "doe"]`
170
170
/// - conditionExpression: A condition that must be satisfied in order for a conditional update to succeed.
171
171
/// - expressionAttributeNames: One or more substitution tokens for attribute names in an expression.
172
172
/// - expressionAttributeValues: One or more values that can be substituted in an expression.
173
173
/// - updateExpression: An expression that defines one or more attributes to be updated, the action to be performed on them, and new value(s) for them. For more information, see [Amazon DynamoDB Update Expressions Documentation.](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.UpdateExpressions.html)
174
174
/// - completion: Completion closure that will be called when request has completed.
175
175
/// - success: Bool value that will be `true` if request has succeeded, otherwise false.
176
176
/// - error: Error if request has failed or `nil` if request has succeeded.
@@ -212,35 +212,35 @@ public struct AwsDynamoDBTable {
212
212
/// - expressionAttributeNames: Substitution tokens for attribute names in an key condition expression.
213
213
/// - expressionAttributeValues: Values that can be substituted in an key condition expression.
214
214
/// - fetchAttributes: Array that represents attributes that should be returned from item. Defaults to empty array.
215
-
/// - startKey: Tuple that represents primary key, e.g `(field: "id", "012345")`. If start key is specified, query will start from item with that key. Defaults to `nil`.
215
+
/// - startKeyParams: Dictionary that represents primary key, or primary and sort key, e.g `["id": "012345"]`, or `["id": "1", "name": "doe"]`. If start key is specified, query will start from item with that key. Defaults to `nil`.
216
216
/// - filterExpression: A string that contains conditions that DynamoDB applies after the query operation, but before the items are returned to you. Items that do not satisfy criteria are not returned.
217
217
/// - limit: Limit number of items returned by query. Defaults to nil.
218
218
/// - consistentRead: If your application requires a strongly consistent read, set this parameter to 'true'. Defaults to `false`.
219
219
/// - completion: Completion closure that will be called when request has completed.
220
220
/// - success: Bool value that will be `true` if request has succeeded, otherwise false.
221
221
/// - items: Items returned from DynamoDB or `nil` if request has failed. Items must conform to `Codable` protocol.
222
222
/// - error: Error if request has failed or `nil` if request has succeeded.
@@ -280,34 +280,34 @@ public struct AwsDynamoDBTable {
280
280
/// - expressionAttributeNames: Substitution tokens for attribute names in an key condition expression.
281
281
/// - expressionAttributeValues: Values that can be substituted in an key condition expression.
282
282
/// - fetchAttributes: Array that represents attributes that should be returned from item. Defaults to empty array.
283
-
/// - startKey: Tuple that represents key, e.g `(field: "id", "012345")`. If start key is specified, scan will start from item with that key. Defaults to `nil`.
283
+
/// - startKeyParams: Dictionary that represents primary key, or primary and sort key, e.g `["id": "012345"]`, or `["id": "1", "name": "doe"]`. If start key is specified, scan will start from item with that key. Defaults to `nil`.
284
284
/// - filterExpression: A string that contains conditions that DynamoDB applies after the query operation, but before the items are returned to you. Items that do not satisfy criteria are not returned.
285
285
/// - limit: Limit number of items returned by query. Defaults to nil.
286
286
/// - consistentRead: If your application requires a strongly consistent read, set this parameter to 'true'. Defaults to `false`.
287
287
/// - completion: Completion closure that will be called when request has completed.
288
288
/// - success: Bool value that will be `true` if request has succeeded, otherwise false.
289
289
/// - items: Items returned from DynamoDB or `nil` if request has failed. Items must conform to `Codable` protocol.
290
290
/// - error: Error if request has failed or `nil` if request has succeeded.
testTable?.deleteItem(key: key, completion:{ _, _ in
79
+
letkeyParams=["id": item.id,"name": item.name]
80
+
testTable?.deleteItem(keyParams: keyParams, completion:{ _, _ in
81
81
self.testTable?.put(item: item, completion:{ _, _ in
82
-
self.testTable?.update(key: key, expressionAttributeValues:[":newBool":true,":incVal":3], updateExpression:"SET bool=:newBool, num = num + :incVal", completion:{ success, error in
self.testTable?.update(keyParams: keyParams, expressionAttributeValues:[":newBool":true,":incVal":3], updateExpression:"SET bool=:newBool, num = num + :incVal", completion:{ success, error in
0 commit comments