https://github.com/kkazuo/bs-gcloud
Google Cloud Datastore bindings of BuckleScript.
https://github.com/kkazuo/bs-gcloud
bucklescript-bindings google-cloud ocaml
Last synced: about 1 year ago
JSON representation
Google Cloud Datastore bindings of BuckleScript.
- Host: GitHub
- URL: https://github.com/kkazuo/bs-gcloud
- Owner: kkazuo
- License: isc
- Created: 2017-05-21T14:19:32.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-21T14:36:34.000Z (almost 9 years ago)
- Last Synced: 2025-02-16T19:02:16.083Z (about 1 year ago)
- Topics: bucklescript-bindings, google-cloud, ocaml
- Language: OCaml
- Size: 1.95 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bs-gcloud
Google Cloud Datastore bindings of BuckleScript.
```
npm i --save bs-gcloud
```
# example
```
let module Ds = Gcloud.Datastore in
let ds = Ds.datastore () in
```
```
let key = ds##key ("Book", "First") in
ds##get key begin fun[@bs] err entity ->
match Js.Undefined.to_opt entity with
| None -> Js.log err
| Some entity -> Js.log entity
end
```