Create an Account
username: password:
 
  MemeStreams Logo

Net::Amazon::SimpleDB::Simple

search

Lost
Picture of Lost
My Blog
My Profile
My Audience
My Sources
Send Me a Message

sponsored links

Lost's topics
Arts
Business
Games
Health and Wellness
Home and Garden
Miscellaneous
Current Events
Recreation
Local Information
Science
Society
Sports
Technology

support us

Get MemeStreams Stuff!


 
Net::Amazon::SimpleDB::Simple
Topic: Technology 5:08 am EST, Dec 24, 2008

Haven't gone through the procedure to get it on CPAN, but I wrote my first CPAN module: Net::Amazon::SimpleDB::Simple.

Give it a perl data structure like a SimpleDB store, it will put it on SimpleDB. Ask it for SimpleDB, it will give you the corresponding perl data structure.

Prior to this, using SimpleDB from Perl was too hard. Now it should be easy. Go me.

Net::Amazon::SimpleDB::Simple - A simple wrapper to Amazon's Perl libary, inspired
by and adapted from Eric Hammond's simpledb CLI: http://code.google.com/p/amazon-simpledb-cli/

Requires the official Amazon::SimpleDB library from AMAZON, not CPAN.

It is not currently available on CPAN (working on it) and can be found here:

http://developer.amazonwebservices.com/connect/entry.jspa?externalID=1136

=head1 SYNOPSIS

use Net::Amazon::SimpleDB::Simple;

my $attributes = {name => 'Jim', hobby => ['jogging', 'climbing'], job => 'cop'};

my $sdb = Net::Amazon::SimpleDB::Simple->new(
{
AWS_ACCESS_KEY_ID => $ENV{AWS_ACCESS_KEY_ID},
AWS_SECRET_ACCESS_KEY => $ENV{AWS_SECRET_ACCESS_KEY},
domain => 'MyDomainName'
}
);

$sdb->put_attributes('555ABC', $attributes);

my $output = $sdb->get_attributes('555ABC');

my $select_output = $sdb->select('SELECT * from MyDomain');

$sdb->delete_attributes('555ABC', $attributes);

Net::Amazon::SimpleDB::Simple



 
 
Powered By Industrial Memetics
RSS2.0