1.0.1 • Published 9 years ago

sand-datastore v1.0.1

Weekly downloads
5
License
ISC
Repository
github
Last release
9 years ago

Sand Datastore

Sand Client to Google Cloud Datastore.

Config

OptionDescription
namespaceoptional namespace for all Kinds created by this client

sand.datastore

sand.datastore.kind(kindName)

Creates a client that interacts with a Kind of the specified kindName.

class Kind

Kind.get(id, callback)

Get the kind with this id.

Kind.save(id, value, callback)

Saves the value with the id for this Kind

Kind.delete(id, callback)

Deletes the value at the specified key for this Kind

Kind.key(id)

Builds a gcloud-node compatible key for the specified id, including the namespace if configured.

Depends on