https://github.com/jamesthompson/purescript-google-cloud-datastore
Google Cloud Node.js Datastore Library Purescript Wrapper
https://github.com/jamesthompson/purescript-google-cloud-datastore
altjs datastore google-cloud purescript
Last synced: about 1 month ago
JSON representation
Google Cloud Node.js Datastore Library Purescript Wrapper
- Host: GitHub
- URL: https://github.com/jamesthompson/purescript-google-cloud-datastore
- Owner: jamesthompson
- License: mit
- Created: 2016-11-11T15:29:22.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-17T01:08:19.000Z (over 8 years ago)
- Last Synced: 2026-01-23T10:42:54.972Z (2 months ago)
- Topics: altjs, datastore, google-cloud, purescript
- Language: PureScript
- Homepage: https://pursuit.purescript.org/packages/purescript-google-cloud-datastore
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# purescript-google-cloud-datastore
[](https://pursuit.purescript.org/packages/purescript-google-cloud-datastore)
A wrapper library around the [Google Cloud Node.js Datastore Library](https://googlecloudplatform.github.io/google-cloud-node/#/).
WIP: At present only supports the main query and non-transactional datastore behaviour. Only tested locally with the Cloud SDK.
WIP: Does not yet support transactional behaviour.
# Getting Started
## Testing and Example
Ensure you have the [Google Cloud (Cloud SDK)](https://cloud.google.com/sdk/) installed.
You'll need to be sure to have installed the `"@google-cloud/datastore": "^0.5.0"` dependency from npm.
This is included in the package.json file for your convenience.
Ensure you export the port environment variable which is logged when running the emulator thus:
```
> gcloud beta emulators datastore start --no-legacy
```
Then run the test with:
```
> bower install
> pulp test
```
See the [test](https://github.com/jamesthompson/purescript-google-cloud-datastore/blob/master/test/Main.purs) for an example of usage.
It is recommended that you familiarise yourself with the underlying [google-cloud node.js library](https://googlecloudplatform.github.io/google-cloud-node/#/docs/google-cloud/0.43.0/datastore).