久久久久久久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 中的遞增數(shù)字屬性

        Incrementing Number Property in AWS DynamoDB Objective C(AWS DynamoDB Objective C 中的遞增數(shù)字屬性)
        • <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 中的遞增數(shù)字屬性的處理方法,對大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我正在努力增加已保存在我的 DynamoDB 表中的項(xiàng)目的數(shù)字屬性值,我的代碼當(dāng)前是:

                  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;
                           }];
                  

                  當(dāng)我不注釋掉 updateExpression 和 expressionAttributeValues 時(shí),我的應(yīng)用程序總是崩潰.當(dāng)我創(chuàng)建我的項(xiàng)目類型的空實(shí)例時(shí),我可以到達(dá)塊,當(dāng)我創(chuàng)建 AWSDynamoDBAttributeValue 的實(shí)例以傳遞密鑰時(shí),我會(huì)得到奇怪的結(jié)果.有什么建議?我是否也錯(cuò)誤地編寫了我的 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?

                  我還將在另一個(gè)對象的數(shù)組/列表和字典/映射屬性中添加更新和刪除項(xiàng)目.這會(huì)有什么不同?

                  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 的實(shí)例.

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

                  expressionAttributeValues定義如下:

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

                  您需要將 @1 替換為 AWSDynamoDBAttributeValue 的實(shí)例.

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

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

                  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.

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

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

                  相關(guān)文檔推薦

                  CLLocation returning negative speed(CLLocation 返回負(fù)速度)
                  Locations in Core Data sorted by distance via NSFetchedResultsController?(通過 NSFetchedResultsController 按距離排序的核心數(shù)據(jù)中的位置?)
                  Swift: Geofencing / geolocations near user location(Swift:用戶位置附近的地理圍欄/地理位置)
                  How to get Location (latitude amp; longitude value) in variable on iOS?(如何在 iOS 上的變量中獲取位置(緯度和經(jīng)度值)?)
                  How to track the device location (iOS and Android) device using Phonegap(如何使用 Phonegap 跟蹤設(shè)備位置(iOS 和 Android)設(shè)備)
                  Easiest way of getting reverse geocoded current location from iOS(從 iOS 獲取反向地理編碼當(dāng)前位置的最簡單方法)
                    <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>
                            主站蜘蛛池模板: 欧美三级成人 | 狠狠干av | 日韩午夜片 | 国产精品视频一区二区三区 | 国产寡妇亲子伦一区二区三区四区 | 久久精品视频网 | 亚洲乱码在线 | 久草视频免费看 | 欧美成人激情视频 | 青青草视频在线观看 | 精品免费国产一区二区三区四区 | 亚洲精品一区二区三区在线观看 | 在线免费看毛片 | 久久九九热 | 香蕉久久a毛片 | 亚洲综合网站 | 91在线精品一区二区 | 18岁毛片 | 久在线视频 | 日本毛片在线观看 | 午夜免费福利 | 一级黄视频 | 国产欧美精品一区二区 | 精品国产精品三级精品av网址 | 成人免费看片39 | 日韩二三区 | 中文字幕在线免费看线人 | 白白色免费视频 | 欧美精品在线看 | 美日韩精品 | 天天天天天操 | 免费啪视频 | 成人福利在线观看 | www.色偷偷| 午夜在线观看免费视频 | 看黄网站在线观看 | 久久久一区二区三区 | 精品一区二区三区在线观看 | 日韩在线网址 | 91av免费在线观看 | 欧美国产激情 |