0.1.3 • Published 10 years ago

cloudelements-dbtool v0.1.3

Weekly downloads
9
License
proprietary
Repository
github
Last release
10 years ago

Cloud Elements DBTool

This is the Cloud Elements DB tool, which is used to manage cloud-elements data directly.

Install (or update) it globally:

$ npm install -g cloudelements-dbtool
$ npm update -g cloudelements-dbtool

You may also need to set some environment variables: (you could put these in your ~/.bash_profile or other startup script)

$ export DBTOOL_DB_URL=postgres://username:password@localhost:5432/elements

Once these are sorted, you can use the dbtool from the command line:

$ dbtool <command> [parameters]

For example,

$ dbtool delete-user my.email@somewhere.com

Or, you can use it in your javascript code:

var Dbtool = require('dbtool').Dbtool,
    dbUrl = 'postgres://username:password@localhost:5432/elements',
    dbtool = new Dbtool(dbUrl),
    email = 'my.email@somewhere.com';

dbtool.deleteUser(email, function(err){
  if (err != null) {
    say("err: ", err);
  } else {
    say("Delete " + email + " complete");
  }
});
0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago