Amazon-DynamoDB

 view release on metacpan or  search on metacpan

t/#02-tables-gsi.t#  view on Meta::CPAN


my $description = $ddb->describe_table(TableName => $table_name);

ok($description->is_done, "Successfully described table");



$description = $description->get();

# Creation times always change.
delete $description->{CreationDateTime};

is_deeply($description, 
          {
              'TableSizeBytes' => 0,
              'ItemCount' => 0,
              'GlobalSecondaryIndexes' => [
                  {
                      'IndexName' => 'EmailIndex',
                      'KeySchema' => [
                          {

t/02-tables-gsi.t  view on Meta::CPAN


my $description = $ddb->describe_table(TableName => $table_name);

ok($description->is_done, "Successfully described table");



$description = $description->get();

# Creation times always change.
delete $description->{CreationDateTime};

is_deeply($description, 
          {
              'TableSizeBytes' => 0,
              'ItemCount' => 0,
              'GlobalSecondaryIndexes' => [
                  {
                      'IndexName' => 'EmailIndex',
                      'KeySchema' => [
                          {

t/02-tables-lsi.t  view on Meta::CPAN


my $description = $ddb->describe_table(TableName => $table_name);

ok($description->is_done, "Successfully described table");



$description = $description->get();

# Creation times always change.
delete $description->{CreationDateTime};

eq_or_diff($description, 
          {
              'TableSizeBytes' => 0,
              'ItemCount' => 0,
              'LocalSecondaryIndexes' => [
                  {
                      'IndexName' => 'UserDateIndex',
                      'KeySchema' => [
                          {



( run in 0.258 second using v1.01-cache-2.11-cpan-05444aca049 )