ally casts date fields as L<DateTime> objects.
=item *
It automatically serializes hashes into JSON so they can be stored in SimpleDB domain attributes, and deserializes on retrieval.
=item *
It
s];
}
return $domains;
}
=head1 PREREQS
This package requires the following modules:
L<JSON>
L<Sub::Name>
L<DateTime>
L<DateTime::Format::Strptime>
L<Moose>
L<MooseX::Types>
L<MooseX::Class
vice.
=head1 METHODS
The following methods are available from this class.
=cut
use Moose;
use JSON;
use DateTime;
use DateTime::Format::Strptime;
use Clone qw(clone);
#---------------------------
lements
HashRef | {} | Less than 259,080 characters when converted to JSON
=head1 TYPES
The following types may be used to define attributes in L<SimpleDB::Class::Item>s.
derations about this type.
=head2 HashRef
A hash reference. For storage this is serialized into JSON and stored as a C<MediumStr>, therefore it cannot exceed 259,080 characters after serialization.
o your items.
=cut
use warnings;
use strict;
use DateTime;
use DateTime::Format::Strptime;
use JSON;
use MooseX::Types
-declare => [qw(SdbArrayRefOfDateTime SdbDateTime
SdbArrayRefOfS