3.0.1 • Published 8 years ago

google-datastore-util v3.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

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

3.0.1

8 years ago

3.0.0

8 years ago

2.0.0

8 years ago

1.0.0

8 years ago