久久久久久久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>
                            主站蜘蛛池模板: 国产精品毛片久久久久久久 | 日本在线一二 | 中文字幕在线视频一区二区三区 | 日韩中文字幕在线观看 | 中文字幕亚洲欧美 | 天天干.com | 欧美国产日韩一区二区三区 | 蜜臀久久99精品久久久久野外 | 日韩精品专区在线影院重磅 | 高清黄色网址 | 中文字幕精品一区 | 精品久久一区 | 亚洲国产一 | 久久久久久高清 | 亚洲国产aⅴ成人精品无吗 欧美激情欧美激情在线五月 | 久久久久久99 | 成人影视网 | 国产日韩一区二区三免费 | 在线观看www高清视频 | 国产精品一区二区三区99 | 国产一区 | 91在线第一页 | 91精品久久久久久久久久入口 | 久久久久久亚洲精品 | 亚洲性在线 | 狠狠躁夜夜躁人人爽天天高潮 | 免费黄色的网站 | 色又黄又爽网站www久久 | 欧美精品一区二区三区在线 | 亚洲视频区 | 99国产精品久久久久 | 综合自拍| 久久男人 | 成人伊人 | 欧美视频三区 | 国产一区二区自拍 | 日韩免费视频 | 91精品国产91久久久久久 | m豆传媒在线链接观看 | 亚洲热在线视频 | 在线播放亚洲 |