docs: add samples from spanner/cloud-client by larkee · Pull Request #117 · googleapis/python-spanner · GitHub
Skip to content
This repository was archived by the owner on Jun 8, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
4e8f7c5
Add spanner samples [(#804)](https://github.com/GoogleCloudPlatform/p…
Feb 14, 2017
7b81a23
Update snippets.py [(#815)](https://github.com/GoogleCloudPlatform/py…
jasonmorton Feb 22, 2017
e3e62a6
Changed read_write minimum amount to 300,000 as per bug [(#818)](http…
ryanmats Feb 22, 2017
9df9890
Remove cloud config fixture [(#887)](https://github.com/GoogleCloudPl…
Apr 4, 2017
1ded769
Fix reference to our testing tools
Apr 12, 2017
5346f6b
Auto-update dependencies. [(#914)](https://github.com/GoogleCloudPlat…
dpebot Apr 24, 2017
dc391f9
Re-generate all readmes
Apr 27, 2017
7391845
Auto-update dependencies. [(#922)](https://github.com/GoogleCloudPlat…
dpebot May 1, 2017
3337ecb
Update spanner sample to use bind parameters [(#928)](https://github.…
May 3, 2017
fb68a54
Fix default arguments
May 5, 2017
2b46e90
Fix README rst links [(#962)](https://github.com/GoogleCloudPlatform/…
waprin May 24, 2017
7db79ec
Auto-update dependencies. [(#992)](https://github.com/GoogleCloudPlat…
dpebot Jun 17, 2017
8a35c27
Auto-update dependencies. [(#1004)](https://github.com/GoogleCloudPla…
dpebot Jun 27, 2017
278b6ce
Swap the album titles to be consistent with other samples [(#1035)](h…
Jul 27, 2017
ba6d34f
Auto-update dependencies. [(#1055)](https://github.com/GoogleCloudPla…
dpebot Aug 7, 2017
59a4e04
Pass multi_use=True to spanner read-only transaction [(#1063)](https:…
Aug 8, 2017
4e22fb1
fix typo
Aug 8, 2017
a8ce453
Auto-update dependencies. [(#1093)](https://github.com/GoogleCloudPla…
dpebot Aug 29, 2017
211387d
Add spanner stale data sample [(#1107)](https://github.com/GoogleClou…
Sep 12, 2017
8147700
Update all generated readme auth instructions [(#1121)](https://githu…
Sep 18, 2017
80ca3db
Added Link to Python Setup Guide [(#1158)](https://github.com/GoogleC…
Oct 12, 2017
dc8a99c
Auto-update dependencies. [(#1138)](https://github.com/GoogleCloudPla…
dpebot Oct 23, 2017
52e04c6
Auto-update dependencies. [(#1186)](https://github.com/GoogleCloudPla…
dpebot Nov 1, 2017
dae800f
Fixed failed tests on Kokoro (Spanner + Translate) [(#1192)](https://…
Nov 3, 2017
0af87b2
Bump spanner stale read from 10 to 15 seconds. [(#1207)](https://gith…
SurferJeffAtGoogle Nov 9, 2017
52d825c
Added "Open in Cloud Shell" buttons to README files [(#1254)](https:/…
Dec 7, 2017
16a87a6
Auto-update dependencies. [(#1316)](https://github.com/GoogleCloudPla…
dpebot Jan 12, 2018
2e1ee6c
Auto-update dependencies. [(#1354)](https://github.com/GoogleCloudPla…
dpebot Feb 8, 2018
9640e96
Add Spanner region tags. [(#1376)](https://github.com/GoogleCloudPlat…
jmdobry Mar 1, 2018
9381802
Auto-update dependencies. [(#1377)](https://github.com/GoogleCloudPla…
dpebot Mar 5, 2018
9c217e3
Spanner Batch Query Sample [(#1402)](https://github.com/GoogleCloudPl…
kurtisvg Mar 15, 2018
7aba51c
Auto-update dependencies. [(#1406)](https://github.com/GoogleCloudPla…
dpebot Mar 16, 2018
a662787
Spanner Commit Timestamp Sample [(#1425)](https://github.com/GoogleCl…
kurtisvg Mar 27, 2018
cea767f
Regenerate the README files and fix the Open in Cloud Shell link for …
Apr 7, 2018
57d526e
Update READMEs to fix numbering and add git clone [(#1464)](https://g…
frankyn Apr 26, 2018
813f0a8
Adding Spanner STRUCT param samples [(#1519)](https://github.com/Goog…
jabubake Jun 13, 2018
07777ce
Fix python Cloud Spanner tests. [(#1548)](https://github.com/GoogleCl…
jsimonweb Jun 29, 2018
9924d57
Cleanup spanner tests. [(#1633)](https://github.com/GoogleCloudPlatfo…
kurtisvg Aug 21, 2018
0850798
Added Spanner DML/PDML samples. [(#1742)](https://github.com/GoogleC…
kurtisvg Oct 10, 2018
8b239e8
Update method name to match action. [(#1836)](https://github.com/Goo…
jsimonweb Nov 13, 2018
f083646
Auto-update dependencies. [(#1846)](https://github.com/GoogleCloudPla…
dpebot Nov 20, 2018
4224746
Add sample to delete data. [(#1872)](https://github.com/GoogleCloudPl…
RobinRH Dec 7, 2018
9d6fd8d
Auto-update dependencies. [(#1980)](https://github.com/GoogleCloudPla…
dpebot Feb 6, 2019
61136e4
Add Cloud Spanner Batch DML sample [(#2068)](https://github.com/Googl…
jsimonweb Mar 25, 2019
99bf094
Add queryWithParameter to Cloud Spanner sample. [(#2153)](https://git…
jsimonweb May 15, 2019
f8a828b
Deflake bigtable and spanner tests. [(#2224)](https://github.com/Goog…
theacodes Jun 14, 2019
7519b11
Improve and fix Cloud Spanner samples that transfer marketing budget …
hegemonic Jun 19, 2019
cd34847
Add Datatypes examples to Spanner sample. [(#2251)](https://github.co…
jsimonweb Jul 10, 2019
02fc4e6
Add bulk loading Python Sample [(#2295)](https://github.com/GoogleClo…
tonioshikanlu Aug 6, 2019
a2f1898
Fix Spanner `BOOL` example after upstream typo fix [(#2356)](https://…
wchargin Sep 5, 2019
3f0639c
Updates to spanner version with BOOL correctly spelled. [(#2392)](htt…
gguuss Sep 13, 2019
3560942
Adds updates for samples profiler ... vision [(#2439)](https://github…
gguuss Oct 7, 2019
9feca9a
update filenames to match the CSV files [(#2535)](https://github.com/…
mmmarklu Nov 16, 2019
83cdcda
Auto-update dependencies. [(#2005)](https://github.com/GoogleCloudPla…
dpebot Dec 21, 2019
2027631
Delete spanner/cloud-client/bulk_load_csv. [(#2721)](https://github.c…
lgruen Jan 17, 2020
15cff78
spanner: add query options versioning samples [(#3093)](https://githu…
larkee Mar 17, 2020
ef4c0e2
spanner: Add Cloud Spanner Backup samples [(#3101)](https://github.co…
larkee Mar 30, 2020
1d7fa0c
Simplify noxfile setup. [(#2806)](https://github.com/GoogleCloudPlatf…
kurtisvg Apr 2, 2020
44e81e8
Update dependency google-cloud-spanner to v1.15.1 [(#3377)](https://g…
renovate-bot Apr 13, 2020
ee0dca1
[spanner] fix: bump the timeout for instance creation [(#3468)](https…
Apr 23, 2020
2ecd360
[spanner] fix: set timeout for polling on operations [(#3488)](https:…
Apr 25, 2020
9dd04cf
fix: use DELETE FROM for consistency [(#3498)](https://github.com/Goo…
skuruppu Apr 28, 2020
bf24403
chore: pin new release [(#3688)](https://github.com/GoogleCloudPlatfo…
larkee May 5, 2020
006401d
chore: some lint fixes [(#3749)](https://github.com/GoogleCloudPlatfo…
May 13, 2020
2bec1d2
chore(deps): update dependency google-cloud-spanner to v1.17.0 [(#388…
renovate-bot May 27, 2020
a62c454
Improve Spanner delete_data sample coverage [(#3922)](https://github.…
larkee Jun 3, 2020
8cb43c0
chore(deps): update dependency google-cloud-spanner to v1.17.1 [(#416…
renovate-bot Jun 25, 2020
a54e210
fix(spanner): use uuid for unique id [(#4198)](https://github.com/Goo…
Jun 29, 2020
1e6670e
feat(spanner): add sample for create instance [(#4230)](https://githu…
larkee Jul 6, 2020
32ac0b0
chore(deps): update dependency pytest to v5.4.3 [(#4279)](https://git…
renovate-bot Jul 12, 2020
aebfbad
chore(deps): update dependency mock to v4 [(#4287)](https://github.co…
renovate-bot Jul 13, 2020
a29be24
test(spanner): add sleep to fix flaky test [(#4289)](https://github.c…
larkee Jul 13, 2020
3e54af6
Merge branch 'samples-samples' into add-samples-samples
zx-zx Jul 23, 2020
10d06cc
chore: update templates
larkee Jul 24, 2020
3585a1f
fix lint
larkee Jul 27, 2020
2d092e0
Merge branch 'master' into add-samples-samples
larkee Jul 29, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/CODEOWNERS
4 changes: 2 additions & 2 deletions docs/_templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@

<div class="body" role="main">
<div class="admonition" id="python2-eol">
On January 1, 2020 this library will no longer support Python 2 on the latest released version.
Previously released library versions will continue to be available. For more information please
As of January 1, 2020 this library no longer supports Python 2 on the latest released version.
Library versions released prior to that date will continue to be available. For more information please
visit <a href="https://cloud.google.com/python/docs/python2-sunset/">Python 2 support on Google Cloud</a>.
</div>
{% block body %} {% endblock %}
Expand Down
1 change: 1 addition & 0 deletions samples/AUTHORING_GUIDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
See https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/AUTHORING_GUIDE.md
1 change: 1 addition & 0 deletions samples/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
See https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/CONTRIBUTING.md
290 changes: 290 additions & 0 deletions samples/samples/README.rst

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions samples/samples/README.rst.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# This file is used to generate README.rst

product:
name: Google Cloud Spanner
short_name: Cloud Spanner
url: https://cloud.google.com/spanner/docs
description: >
`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.

setup:
- auth
- install_deps

samples:
- name: Snippets
file: snippets.py
show_help: true

cloud_client_library: true

folder: spanner/cloud-client
314 changes: 314 additions & 0 deletions samples/samples/backup_sample.py
Loading