久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

      <i id='lYfjW'><tr id='lYfjW'><dt id='lYfjW'><q id='lYfjW'><span id='lYfjW'><b id='lYfjW'><form id='lYfjW'><ins id='lYfjW'></ins><ul id='lYfjW'></ul><sub id='lYfjW'></sub></form><legend id='lYfjW'></legend><bdo id='lYfjW'><pre id='lYfjW'><center id='lYfjW'></center></pre></bdo></b><th id='lYfjW'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='lYfjW'><tfoot id='lYfjW'></tfoot><dl id='lYfjW'><fieldset id='lYfjW'></fieldset></dl></div>

      <small id='lYfjW'></small><noframes id='lYfjW'>

    1. <legend id='lYfjW'><style id='lYfjW'><dir id='lYfjW'><q id='lYfjW'></q></dir></style></legend>
          <bdo id='lYfjW'></bdo><ul id='lYfjW'></ul>

      1. <tfoot id='lYfjW'></tfoot>
      2. AWS DynamoDB Objective C 中的遞增數字屬性

        Incrementing Number Property in AWS DynamoDB Objective C(AWS DynamoDB Objective C 中的遞增數字屬性)
        • <tfoot id='0qvz7'></tfoot>
          <legend id='0qvz7'><style id='0qvz7'><dir id='0qvz7'><q id='0qvz7'></q></dir></style></legend>
          <i id='0qvz7'><tr id='0qvz7'><dt id='0qvz7'><q id='0qvz7'><span id='0qvz7'><b id='0qvz7'><form id='0qvz7'><ins id='0qvz7'></ins><ul id='0qvz7'></ul><sub id='0qvz7'></sub></form><legend id='0qvz7'></legend><bdo id='0qvz7'><pre id='0qvz7'><center id='0qvz7'></center></pre></bdo></b><th id='0qvz7'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='0qvz7'><tfoot id='0qvz7'></tfoot><dl id='0qvz7'><fieldset id='0qvz7'></fieldset></dl></div>
              <bdo id='0qvz7'></bdo><ul id='0qvz7'></ul>

                  <tbody id='0qvz7'></tbody>
              1. <small id='0qvz7'></small><noframes id='0qvz7'>

                  本文介紹了AWS DynamoDB Objective C 中的遞增數字屬性的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我正在努力增加已保存在我的 DynamoDB 表中的項目的數字屬性值,我的代碼當前是:

                  I am struggling with incrementing a number property value of an item already saved in my table on DynamoDB my code currently is:

                          AWSDynamoDBUpdateItemInput *updateItemInput = [AWSDynamoDBUpdateItemInput new];
                          updateItemInput.tableName = @"Table";
                  
                          updateItemInput.key= @{
                                                 @"KeyPropertyName":@"KeyValue"
                                                  };
                          updateItemInput.updateExpression = @"SET(counter = counter + :val)";
                          updateItemInput.expressionAttributeValues =@{
                                                                       @":val":@1
                                                                       };
                          AWSDynamoDB *dynamoDB = [AWSDynamoDB defaultDynamoDB];
                  
                          [[dynamoDB updateItem:updateItemInput]
                           continueWithBlock:^id(AWSTask *task) {
                               if (task.error) {
                                   NSLog(@"The request failed. Error: [%@]", task.error);
                               }
                               if (task.exception) {
                                   NSLog(@"The request failed. Exception: [%@]", task.exception);
                               }
                               if (task.result) {
                                   //Do something with result.
                               }
                               return nil;
                           }];
                  

                  當我不注釋掉 updateExpression 和 expressionAttributeValues 時,我的應用程序總是崩潰.當我創建我的項目類型的空實例時,我可以到達塊,當我創建 AWSDynamoDBAttributeValue 的實例以傳遞密鑰時,我會得到奇怪的結果.有什么建議?我是否也錯誤地編寫了我的 updateExpression?

                  My app always crashes when I do not comment out the updateExpression and expressionAttributeValues. I can reach the block when I create an empty instance of my item type and get strange results when I create an instance of AWSDynamoDBAttributeValue to pass in the key. Any suggestions? Am I also improperly writing my updateExpression?

                  我還將在另一個對象的數組/列表和字典/映射屬性中添加更新和刪除項目.這會有什么不同?

                  I am also going to be adding updating and deleting items in array/list and dictionary/map properties on another object. How would this differ?

                  推薦答案

                  有幾件事.key定義如下:

                  @property (nonatomic, strong) NSDictionary<NSString *, AWSDynamoDBAttributeValue *> * _Nullable key;
                  

                  您需要將 @"KeyValue" 替換為 AWSDynamoDBAttributeValue 的實例.

                  You need to replace @"KeyValue" with an instance of AWSDynamoDBAttributeValue.

                  expressionAttributeValues定義如下:

                  @property (nonatomic, strong) NSDictionary<NSString *, AWSDynamoDBAttributeValue *> * _Nullable expressionAttributeValues;
                  

                  您需要將 @1 替換為 AWSDynamoDBAttributeValue 的實例.

                  You need to replace @1 with an instance of AWSDynamoDBAttributeValue.

                  確保使用最新版本的適用于 iOS 的 AWS 開發工具包,以便您可以在頭文件中看到泛型注釋.它可以幫助您構建正確的請求對象.

                  Make sure to use the latest version of the AWS SDK for iOS so that you can see the generics annotations in the header file. It helps you construct the proper request object.

                  這篇關于AWS DynamoDB Objective C 中的遞增數字屬性的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  CLLocation returning negative speed(CLLocation 返回負速度)
                  Locations in Core Data sorted by distance via NSFetchedResultsController?(通過 NSFetchedResultsController 按距離排序的核心數據中的位置?)
                  Swift: Geofencing / geolocations near user location(Swift:用戶位置附近的地理圍欄/地理位置)
                  How to get Location (latitude amp; longitude value) in variable on iOS?(如何在 iOS 上的變量中獲取位置(緯度和經度值)?)
                  How to track the device location (iOS and Android) device using Phonegap(如何使用 Phonegap 跟蹤設備位置(iOS 和 Android)設備)
                  Easiest way of getting reverse geocoded current location from iOS(從 iOS 獲取反向地理編碼當前位置的最簡單方法)
                    <tbody id='usGrh'></tbody>
                  • <bdo id='usGrh'></bdo><ul id='usGrh'></ul>

                    <small id='usGrh'></small><noframes id='usGrh'>

                      1. <i id='usGrh'><tr id='usGrh'><dt id='usGrh'><q id='usGrh'><span id='usGrh'><b id='usGrh'><form id='usGrh'><ins id='usGrh'></ins><ul id='usGrh'></ul><sub id='usGrh'></sub></form><legend id='usGrh'></legend><bdo id='usGrh'><pre id='usGrh'><center id='usGrh'></center></pre></bdo></b><th id='usGrh'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='usGrh'><tfoot id='usGrh'></tfoot><dl id='usGrh'><fieldset id='usGrh'></fieldset></dl></div>

                            <legend id='usGrh'><style id='usGrh'><dir id='usGrh'><q id='usGrh'></q></dir></style></legend>
                          • <tfoot id='usGrh'></tfoot>
                            主站蜘蛛池模板: 亚洲一区二区三区四区五区中文 | 成人国产免费观看 | 国产精品国产成人国产三级 | 成人在线精品视频 | 中文字幕国产高清 | 成人国产在线视频 | 一区二区三区欧美在线观看 | 午夜精品久久久久久久久久久久久 | 久久精品免费一区二区三 | 人人玩人人添人人澡欧美 | 91热在线| 久久精品国产一区二区三区不卡 | 亚洲综合一区二区三区 | 久久午夜视频 | 丁香久久| 国产欧美精品区一区二区三区 | 亚洲高清视频在线观看 | 狠狠干天天干 | 九九热免费看 | 九九热精品免费 | 欧美激情精品久久久久久 | 国产免费一区 | 久久精品欧美一区二区三区不卡 | 麻豆精品一区二区三区在线观看 | 欧美一级视频免费看 | 日韩在线一区二区 | 久久国产成人 | 亚洲视频在线观看一区二区三区 | 精品一区在线 | 日韩欧美亚洲 | 91天堂| 黄色网址在线播放 | 国产一区二区三区 | 国产在线二区 | 国产激情偷乱视频一区二区三区 | 91一区二区三区 | 日韩欧美黄色 | 精品国产一区二区三区久久影院 | 波多野结衣av中文字幕 | а天堂中文最新一区二区三区 | 中文字幕视频在线 |