Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 1.13 KB

File metadata and controls

29 lines (18 loc) · 1.13 KB

Getting Started with Cloud Datastore and the Google Cloud Client libraries

Open in Cloud Shell

Google Cloud Datastore is a highly-scalable NoSQL database for your applications. These sample Java applications demonstrate how to access the Datastore API using the Google Cloud Client Library for Java.

Quickstart

Install Maven.

Build your project with:

mvn clean package -DskipTests

You can then run a given ClassName via:

mvn exec:java -Dexec.mainClass=com.example.bigquery.ClassName \
    -DpropertyName=propertyValue \
	-Dexec.args="any arguments to the app"

Creating a new entity (using the quickstart sample)

mvn exec:java -Dexec.mainClass=com.example.datastore.QuickstartSample