GCLOUD-DATASTORE-UTIL
NAME
gcloud-datastore-util - utility for Google Cloud Datastore
DESCRIPTION
This module exports a collection of common functionalities when using Google Cloud Datastore via gcloud module:
- Remove all entities of a given kind of a namespace.
Note that this module does not include the gcloud module, it must be required separately.
EXAMPLES
Remove all entities of a given kind of a namespace:
var config = projectId: 'projectId' keyFilename: '/path/to/key/file.json' namespace: 'Namespace';var dataset = datastore;var datastore = ;var kind = 'kind'; datastore;
TEST
Install development dependencies:
$ npm install
Run test on every code change:
$ mocha --harmony --watch
AUTHORS
Chao Huang chao@realguess.net