Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ORM for google cloud datastore

https://developers.google.com/datastore/docs/overview

It looks like datastore in GAE but without ORM (object relation model). May I used the same ORM model as datastore on GAE for Cloud Datastore? or Is there any ORM support can be found for Cloud Datastore?

like image 416
lucemia Avatar asked May 20 '13 03:05

lucemia


People also ask

Is GCP a NoSQL Datastore?

Pricing. Datastore is a highly-scalable NoSQL database for your web and mobile applications.

What type of database is Google Datastore?

Datastore is a NoSQL document database built for automatic scaling, high performance, and ease of application development.

What is the difference between Datastore and BigTable?

Cloud Datastore. BigTable is optimized for high volumes of data and analytics while Datastore is optimized to serve high-value transactional data to applications.


2 Answers

App Engine Datastore high level APIs, both first party (db, ndb) and third party (objectify, slim3), are built on top of low level APIs:

  • datastore_rpc for Python
  • DatastoreService/AsyncDatastoreService for Java

Replacing the App Engine specific versions of these interfaces/classes to work on top of The Google Cloud Datastore API will allow you to use these high level APIs outside of App Engine.

The high level API code itself should not have to change (much).

like image 115
Alfred Fuller Avatar answered Oct 23 '22 21:10

Alfred Fuller


Google Cloud Datastore only provides a low-level API (proto and json) to send datastore RPCs.

NDB and similar higher level libraries could be adapted to use a lower level wrapper like googledatastore (reference) instead of google.appengine.datastore.datastore_rpc

like image 37
proppy Avatar answered Oct 23 '22 22:10

proppy