47 if (!
defined(
'Aws\Common\Aws::VERSION') || version_compare(
'3.0', Aws::VERSION,
'<=')) {
48 throw new \RuntimeException(
'The DynamoDbHandler is only known to work with the AWS SDK 2.x releases');
63 $formatted = $this->client->formatAttributes($filtered);
65 $this->client->putItem(
array(
66 'TableName' => $this->table,
77 return array_filter($record,
function ($value) {
78 return !empty($value) ||
false === $value || 0 === $value;
const DEBUG
Detailed debug information.
Base Handler class providing the Handler structure.
Create styles array
The data for the language used.
filterEmptyFields(array $record)
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
__construct(DynamoDbClient $client, $table, $level=Logger::DEBUG, $bubble=true)
Amazon DynamoDB handler (http://aws.amazon.com/dynamodb/)