Getting started with google-cloud-datastore

Download google-cloud-datastore eBook

Remarks

This section provides an overview of what google-cloud-datastore is, and why a developer might want to use it.

It should also mention any large subjects within google-cloud-datastore, and link out to the related topics. Since the Documentation for google-cloud-datastore is new, you may need to create initial versions of those related topics.

Initial Setup

Google Cloud Project

Google Cloud Datastore is a NoSQL Database as a Service (DBaaS) that provides developers with a scalable replicated database that is fully managed by Google.

For its initial setup you need to either have an existing Google Cloud Platform (GCP) project, or create a new one. Cloud Datastore has a free tier, so you do not need to configure billing information at this time. You can select or create a project here: https://console.cloud.google.com/project

Once you have a project, it's ready to go. Navigate to the Datastore tab in the Cloud console and you will be able to manually create entities in your instance.

Cloud Datastore can be access from Compute Engine or Container Engine via a variety of client libraries.

To install the client libraries:

  • C#: Install-Package Google.Datastore.V1 -Pre
  • Go: go get cloud.google.com/go/datastore
  • Node.js: npm install --save @google-cloud/datastore
  • PHP: composer require google/cloud
  • Python: pip install --upgrade google-cloud-datastore
  • Ruby: gem install google-cloud-datastore

For Java:

  • If you use Maven, add the following to your pom.xml file:
<dependency>
    <groupId>com.google.cloud</groupId>
    <artifactId>google-cloud-datastore</artifactId>
    <version>0.7.0</version>
</dependency>
 
  • If you use Gradle, add the following to your dependencies:
compile group: 'com.google.cloud', name: 'google-cloud-datastore', version: '0.7.0'
 

More information can be found in the official documentation for client libraries.

Stats

25 Contributors: 2
Tuesday, December 6, 2016
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook