File tree 1 file changed +11
-17
lines changed
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/).
18
18
Build your project from the root directory (` java-spanner ` ):
19
19
20
20
mvn clean package -DskipTests
21
+ cd samples/snippets
22
+ mvn package
21
23
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 ` .
23
25
24
- You can run a given ` ClassName ` via:
26
+ ### Running samples
25
27
26
- mvn exec:java -Dexec.mainClass=com.example.spanner.ClassName \
27
- -DpropertyName=propertyValue \
28
- -Dexec.args="any arguments to the app"
28
+ Usage:
29
29
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
31
31
32
- mvn exec:java -Dexec.mainClass=com.example.spanner.QuickstartSample -Dexec.args="my-instance my-database"
32
+ #### Examples
33
33
34
- ## Tutorial
34
+ Create Database:
35
35
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
38
37
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:
41
39
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