Database Reference
In-Depth Information
foreach (Dictionary<string, AttributeValue> item in
response.QueryResult.Items)
{
PrintItem(item);
}
lastKeyEvaluated = response.QueryResult.LastEvaluatedKey;
} while (lastKeyEvaluated != null);
PHP API
The following is the syntax to query the Book table where the year of publishing equals
2014 in PHP:
$response = $client->query(array(
"TableName" => "Book",
"KeyConditions" => array(
"yop" => array(
"ComparisonOperator" => ComparisonOperator::EQ,
"AttributeValueList" => array(
array(Type::NUMBER => 2014)
)
)
)
));
To use pagination, you can use the following code:
$tableName = "Book";
do {
$request = array(
"TableName" => $tableName,
"KeyConditions" => array(
"yop" => array(
"ComparisonOperator" =>
ComparisonOperator::EQ,
"AttributeValueList" => array(
array(Type::NUMBER => 2014)
Search WWH ::




Custom Search