File tree Expand file tree Collapse file tree 4 files changed +12
-14
lines changed Expand file tree Collapse file tree 4 files changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ contract laid out in
10
10
11
11
.. code-block :: python
12
12
13
- from google.cloud.spanner.pool import AbstractSessionPool
13
+ from google.cloud.spanner import AbstractSessionPool
14
14
15
15
class MyCustomPool (AbstractSessionPool ):
16
16
@@ -43,8 +43,7 @@ Create an instance of :class:`~google.cloud.spanner.pool.PingingPool`:
43
43
44
44
.. code-block :: python
45
45
46
- from google.cloud.spanner import Client
47
- from google.cloud.spanner.pool import PingingPool
46
+ from google.cloud.spanner import Client, PingingPool
48
47
49
48
client = Client()
50
49
instance = client.instance(INSTANCE_NAME )
@@ -77,8 +76,7 @@ Create an instance of
77
76
78
77
.. code-block :: python
79
78
80
- from google.cloud.spanner import Client
81
- from google.cloud.spanner.pool import TransactionPingingPool
79
+ from google.cloud.spanner import Client, TransactionPingingPool
82
80
83
81
client = Client()
84
82
instance = client.instance(INSTANCE_NAME )
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ rows do not cause errors.
132
132
133
133
.. code :: python
134
134
135
- from google.cloud.spanner.keyset import KeySet
135
+ from google.cloud.spanner import KeySet
136
136
137
137
to_delete = KeySet(keys = [
138
138
@@ -165,7 +165,7 @@ if the ``with`` block exits without raising an exception.
165
165
166
166
.. code :: python
167
167
168
- from google.cloud.spanner.keyset import KeySet
168
+ from google.cloud.spanner import KeySet
169
169
170
170
client = spanner.Client()
171
171
instance = client.instance(INSTANCE_NAME )
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ and creating other objects:
13
13
14
14
.. code :: python
15
15
16
- from google.cloud import spanner_v1
17
- client = spanner_v1 .Client()
16
+ from google.cloud import spanner
17
+ client = spanner .Client()
18
18
19
19
Long-lived Defaults
20
20
-------------------
@@ -47,15 +47,15 @@ Configuration
47
47
48
48
.. code ::
49
49
50
- >>> from google.cloud import spanner_v1
51
- >>> client = spanner_v1 .Client()
50
+ >>> from google.cloud import spanner
51
+ >>> client = spanner .Client()
52
52
53
53
or pass in ``credentials `` and ``project `` explicitly
54
54
55
55
.. code ::
56
56
57
- >>> from google.cloud import spanner_v1
58
- >>> client = spanner_v1 .Client(project='my-project', credentials=creds)
57
+ >>> from google.cloud import spanner
58
+ >>> client = spanner .Client(project='my-project', credentials=creds)
59
59
60
60
.. tip ::
61
61
Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ contract laid out in :class:`~google.cloud.spanner.pool.AbstractSessionPool`:
230
230
231
231
.. code-block :: python
232
232
233
- from google.cloud.pool import AbstractSessionPool
233
+ from google.cloud.spanner import AbstractSessionPool
234
234
235
235
class MyCustomPool (AbstractSessionPool ):
236
236
You can’t perform that action at this time.
0 commit comments