X Tutup
Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Google Cloud Spanner Sample

Open in Cloud Shell

This sample demonstrates how to use Google Cloud Spanner from Google App Engine standard Java 11 environment.

Setup

   gcloud init

If this is your first time creating an App engine application:

   gcloud app create

Endpoints

  • /spanner : will run sample operations against the spanner instance in order. Individual tasks can be run using the task query parameter. See SpannerTasks for supported set of tasks. Note : by default all the spanner example operations run in order, this operation may take a while to return.

Deploying

mvn clean package appengine:deploy -Dapp.deploy.projectId=<your-project-id>

To see the results of the deployed sample application, open https://PROJECT_ID.appspot.com/spanner in a web browser. Note : by default all the spanner example operations run in order, this operation may take a while to show results.

X Tutup