Create an Account
username: password:
 
  MemeStreams Logo

MemeStreams Discussion

search


This page contains all of the posts and discussion on MemeStreams referencing the following web page: Net::Amazon::SimpleDB::Simple. You can find discussions on MemeStreams as you surf the web, even if you aren't a MemeStreams member, using the Threads Bookmarklet.

Net::Amazon::SimpleDB::Simple
by Lost at 2:19 am EST, Dec 29, 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);


 
 
Powered By Industrial Memetics