-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazkvs.js
31 lines (25 loc) · 805 Bytes
/
azkvs.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
* Load Settings
*/
nconf = require('nconf');
nconf.env().file({ file: 'settings.json' });
/*
* Load Dependencies
*/
var azure = require('azure');
var EntityBag = require('./entitybag');
/*
* Initialize Table Interface
*/
var tableService = azure.createTableService(nconf.get('azkvs:storageaccount'), nconf.get('azkvs:storagekey'));
//-----------------------------------------------------------
// Public Methods
//-----------------------------------------------------------
exports.info = function info() {
var message="This is a simple azure table wrapper to provide a key-value-pair utility backed by Azure Table Storage.";
console.log(message);
return(message);
}
exports.getEntityBag = function (name, callback) {
return new EntityBag(name, tableService, callback);
};