using simpledb with node.js

var simpledb = require('simpledb');
var sys = require('sys');
var sdb      = new simpledb.SimpleDB({keyid:'key'
                        ,secret:'sec key '})


sdb.listDomains( function( error, result, meta ) {
  if( error ) {
    console.log('listDomains failed: '+error.Message )
  }
  else {
    // do stuff with result, an array of domain names
     console.log( 'attr1 = '+sys.inspect(result));
  }
})
 sdb.select ("Select * from youngib",  function( error, result ) {
  console.log( 'attr1 = '+sys.inspect(result.length));
});

ref :

https://github.com/rjrodger/simpledb

Advertisements

About rahul23134654

Hi, I am Rahul Meha , B.E. in (I.T.)
This entry was posted in Node.js. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s