【发布时间】:2013-09-28 20:47:49
【问题描述】:
各位, 我正在尝试让以下代码返回表中的行数:
import boto
import boto.dynamodb2
from boto.dynamodb2.table import Table
from boto.dynamodb2.fields import HashKey, RangeKey
drivers = Table('current_fhv_drivers')
rowcountquery = drivers.query(
number = 'blah',
expiration = 'foo',
count=True,
)
for x in rowcountquery:
print x['Count']
我看到的错误是:
boto.dynamodb2.exceptions.UnknownFilterTypeError: Operator 'count' from 'count' is not recognized.
获取行数的正确语法是什么:)
谢谢!
【问题讨论】:
标签: python amazon-web-services boto amazon-dynamodb