0.1.1 • Published 12 years ago
dydb v0.1.1
#Installation#
Install globally via npmnpm install -g dydb
#Usage#
dydb command [options]
##Commands##
list list all tables in databasedescribe <table> get the schema for a tablecount <table> get item count of tablecreate <file> create a table using a json definition filedelete <table> delete a tabledump <table> get all data from a tabletruncate <table> remove all data from a table
##Options##
-h, --help output usage information-V, --version output the version number-e, --env <name> environment name as specified in the config
#Configuration#
Add a file named .dydb to your home directory.
Add "default": true to one of the entries, and that entry will be used when --env is omitted.
{
"local": {
"default": true,
"aws": {
"sslEnabled": false,
"endpoint": "localhost:8000",
"accessKeyId": "xxx",
"secretAccessKey": "xxx",
"region": "xxx"
}
},
"prod": {
aws: {
accessKeyId: "yyy",
secretAccessKey: "yyy",
region: "yyy"
}
}
}