google-cloud

Google Cloud Platform: Clojure + {GAE, GCE, anything else on Google Platform}
2018-12-13T16:47:23.001Z

I'm trying to use Datastore Appengine on clojure Intellij

2018-12-13T16:47:55.001800Z

There's someone here that uses?

2018-12-13T16:49:15.002800Z

When I run something from

com.google.appengine.api.datastore
gives me this error:
cause No API environment is registered for this thread.

2018-12-13T16:49:31.003300Z

I'm only using:

2018-12-13T16:49:56.003800Z

com.google.cloud.datastore

2018-12-13T16:50:22.004500Z

because of this, and the google.cloud.datastore is deprecated I think

2018-12-13T16:50:24.004700Z

=\

domparry 2018-12-13T16:55:55.005500Z

Hey there. Look for a lib on github called SimpleValue

domparry 2018-12-13T16:56:52.007300Z

Everything you need to use datastore api is in there. We based all our stuff on that. I'm not near my laptop now, but I'll gladly share some code with you if you don't come right.

2018-12-13T17:17:01.007900Z

The problem with SimpleValue is that everythoing is wrote on REST API

2018-12-13T17:17:02.008100Z

=/

domparry 2018-12-13T17:19:26.008400Z

I used the api classes a bit in cloud dataflow.

domparry 2018-12-13T17:19:56.008800Z

mainly from com.google.datastore.v1

domparry 2018-12-13T17:20:23.009200Z

(I didn’t know it was deprecated…)

domparry 2018-12-13T17:21:48.009500Z

still seems like it’s active a few days ago: https://github.com/googleapis/google-cloud-java

domparry 2018-12-13T17:23:40.009900Z

the latest one actually looks a bit neater: https://github.com/googleapis/google-cloud-java/tree/master/google-cloud-clients/google-cloud-datastore

domparry 2018-12-13T17:24:22.010600Z

But in our core library that we use for all our apps, we use the REST API, and it works really well.