Permalink
Browse files

Show how to insert in the synopsis - good for 'quick start' / lazy pe…

…ople
  • Loading branch information...
1 parent 855dda1 commit bf0e164212280d35f8dc6d094b3e9c2d8cf2665b @ranguard committed Aug 30, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/SimpleDB/Class.pm
View
@@ -51,6 +51,8 @@ SimpleDB::Class - An Object Relational Mapper (ORM) for the Amazon SimpleDB serv
use DateTime;
my $library = Library->new(access_key => 'xxx', secret_key => 'yyy', cache_servers=>\@servers );
+
+ my $new_book = $library->domain('book')->insert({ title => 'Three little pigs' });
my $specific_book = $library->domain('book')->find('id goes here');

0 comments on commit bf0e164

Please sign in to comment.