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));
}) ("Select * from youngib",  function( error, result ) {
  console.log( 'attr1 = '+sys.inspect(result.length));

ref :


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: Logo

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s