我在AWS DynamoDB中成功列出了表名。
所有表名也在调试控制台中打印。
但问题是如何获取表数据?
我的项目计数始终为0,但在db中显示5条记录。
这是我的代码。
later.parse.text('at 5:00 pm on Weds,Thurs and Fri');
此输出显示此响应。
let atVal = AWSDynamoDBAttributeValue()
atVal.S = "testC"
let condition = AWSDynamoDBCondition()
condition.comparisonOperator = AWSDynamoDBComparisonOperator.EQ
condition.attributeValueList = [atVal]
let myDic: [String: AWSDynamoDBCondition] = ["testC": condition]
let query = AWSDynamoDBQueryInput()
query.tableName = "test"
query.keyConditions = myDic
query.limit = 1
dynamoDB.query(query).continueWithBlock {
(task: AWSTask!) -> AnyObject! in
let results = task.result as! AWSDynamoDBQueryOutput
let myResults = results.items
print("object: \(myResults!.description)")
return nil
}
AWSiOSSDK v
AWSiOSSDK v2.4.5 [Debug] AWSURLResponseSerialization.m line:63 | -[AWSJSONResponseSerializer responseObjectForResponse:originalRequest:currentRequest:data:error:] | Response body:
任何人都可以帮助我吗?如何在AWS中获取和检索数据?
任何人都提供演示AWS DynamoDB?
由于