datastore-keyutil
A utility to make dealing with @google-cloud/datastore
keys little more pleasant.
Usage
var Datastore = ;var ds = /* init options */; var KeyUtil = KeyUtil; var options = // boolean (default: false) - exposes instance as ds.keyUtil, embed: true // function (default: throws BadKeyError with message) - function to call on invalid data. { console; throw message; } var ku = ds options; ds ;
See here for an exhaustive list of KeyUtil functions.
Running the tests
To run the tests, you'll need to run a local Datastore emulator, from the Google Cloud SDK.
Then, run npm test
Versioning
This library is still in beta, breaking changes may occur until v1.0.0 is reached. We use SemVer for versioning.
License
This project is licensed under the ISC License - see the LICENSE file for details.
Acknowledgments
This wouldn't be of any use without the NodeJS Google Cloud Datastore library.