3.0.1 • Published 8 years ago
google-datastore-util v3.0.1
Google Datastore Utilities
Simple CRUD library for Google Datastore.
Usage
var ds = require("google-datastore-util")({
projectId: "googleCloudProjectId",
keyFilename: "keyFileLocation",
namespace: "yourNamespace",
kind: "nameOfKind"
});
ds.read(id, function(error, result){
console.info(error, result);
});
ds.create(data, function(error, result){
console.info(error, result);
});
ds.delete(id, function(error, result){
console.info(error, result);
});
ds.update(id, data, function(error, result){
console.info(error, result);
});
All credit goes to https://github.com/GoogleCloudPlatform/nodejs-getting-started/blob/master/2-structured-data/books/crud.js