3
3
Google Cloud Spanner Python Samples
4
4
===============================================================================
5
5
6
+ .. image :: https://gstatic.com/cloudssh/images/open-btn.png
7
+ :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=spanner/cloud-client/README.rst
8
+
9
+
6
10
This directory contains samples for Google Cloud Spanner. `Google Cloud Spanner `_ is a highly scalable, transactional, managed, NewSQL database service. Cloud Spanner solves the need for a horizontally-scaling database with consistent global transactions and SQL semantics.
7
11
8
12
@@ -54,6 +58,10 @@ Samples
54
58
Snippets
55
59
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
56
60
61
+ .. image :: https://gstatic.com/cloudssh/images/open-btn.png
62
+ :target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=spanner/cloud-client/snippets.py;spanner/cloud-client/README.rst
63
+
64
+
57
65
58
66
59
67
To run this sample:
@@ -66,12 +74,12 @@ To run this sample:
66
74
instance_id
67
75
{create_database,insert_data,query_data,read_data,read_stale_data,add_column,update_data,query_data_with_new_column,read_write_transaction,read_only_transaction,add_index,query_data_with_index,read_data_with_index,add_storing_index,read_data_with_storing_index}
68
76
...
69
-
77
+
70
78
This application demonstrates how to do basic operations using Cloud
71
79
Spanner.
72
-
80
+
73
81
For more information, see the README.rst under /spanner.
74
-
82
+
75
83
positional arguments:
76
84
instance_id Your Cloud Spanner instance ID.
77
85
{create_database,insert_data,query_data,read_data,read_stale_data,add_column,update_data,query_data_with_new_column,read_write_transaction,read_only_transaction,add_index,query_data_with_index,read_data_with_index,add_storing_index,read_data_with_storing_index}
@@ -82,7 +90,7 @@ To run this sample:
82
90
query_data Queries sample data from the database using SQL.
83
91
read_data Reads sample data from the database.
84
92
read_stale_data Reads sample data from the database. The data is
85
- exactly 10 seconds stale.
93
+ exactly 15 seconds stale.
86
94
add_column Adds a new column to the Albums table in the example
87
95
database.
88
96
update_data Updates sample data in the database. This updates the
@@ -131,7 +139,7 @@ To run this sample:
131
139
Inserts sample data into the given database. The
132
140
database and table must already exist and can be
133
141
created using ` create_database` .
134
-
142
+
135
143
optional arguments:
136
144
-h, --help show this help message and exit
137
145
--database-id DATABASE_ID
@@ -140,6 +148,7 @@ To run this sample:
140
148
141
149
142
150
151
+
143
152
The client library
144
153
-------------------------------------------------------------------------------
145
154
0 commit comments