File tree Expand file tree Collapse file tree 1 file changed +11
-17
lines changed Expand file tree Collapse file tree 1 file changed +11
-17
lines changed Original file line number Diff line number Diff line change @@ -18,29 +18,23 @@ Install [Maven](http://maven.apache.org/).
1818Build your project from the root directory (` java-spanner ` ):
1919
2020 mvn clean package -DskipTests
21+ cd samples/snippets
22+ mvn package
2123
22- Every subsequent command here should be run from a subdirectory ( ` cd samples/snippets` ) .
24+ Every subsequent command here should be run from a subdirectory ` samples/snippets ` .
2325
24- You can run a given ` ClassName ` via:
26+ ### Running samples
2527
26- mvn exec:java -Dexec.mainClass=com.example.spanner.ClassName \
27- -DpropertyName=propertyValue \
28- -Dexec.args="any arguments to the app"
28+ Usage:
2929
30- ### Running a simple query (using the quickstart sample)
30+ java -jar target/spanner-snippets/spanner-google-cloud-samples.jar operation my-instance my-database
3131
32- mvn exec:java -Dexec.mainClass=com.example.spanner.QuickstartSample -Dexec.args="my-instance my-database"
32+ #### Examples
3333
34- ## Tutorial
34+ Create Database:
3535
36- ### Running the tutorial
37- mvn exec:java -Dexec.mainClass=com.example.spanner.admin.archived.SpannerSample -Dexec.args="<command> my-instance my-database"
36+ java -jar target/spanner-google-cloud-samples-jar-with-dependencies.jar my-instance my-database
3837
39- ## Tracing sample
40- ` TracingSample.java ` demonstrates how to export traces generated by client library to StackDriver and to /tracez page.
38+ Listing database operations:
4139
42- ### Running the tracing sample
43- mvn exec:java -Dexec.mainClass=com.example.spanner.TracingSample -Dexec.args="my-instance my-database"
44-
45- ## Test
46- mvn verify -Dspanner.test.instance=<instance id> -Dspanner.sample.database=<new database id> -Dspanner.quickstart.database=<existing database id>
40+ java -jar target/spanner-snippets/spanner-google-cloud-samples.jar listdatabaseoperations my-instance my-database
You can’t perform that action at this time.
0 commit comments