Skip to content
This repository was archived by the owner on Mar 31, 2026. It is now read-only.

Commit 5c4fb7d

Browse files
authored
Merge branch 'main' into owl-bot-update-lock-543e209e7c1c1ffe720eb4db1a3f045a75099304fb19aa11a47dc717b8aae2a9
2 parents 1ab346a + 9535e5e commit 5c4fb7d

37 files changed

+335
-47
lines changed

.github/.OwlBot.lock.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
# limitations under the License.
1414
docker:
1515
image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest
16-
digest: sha256:543e209e7c1c1ffe720eb4db1a3f045a75099304fb19aa11a47dc717b8aae2a9
17-
# created: 2025-10-09T14:48:42.914384887Z
16+
digest: sha256:fbbc8db67afd8b7d71bf694c5081a32da0c528eba166fbcffb3b6e56ddf907d5
17+
# created: 2025-10-30T00:16:55.473963098Z

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "3.58.0"
2+
".": "3.59.0"
33
}

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,23 @@
44

55
[1]: https://pypi.org/project/google-cloud-spanner/#history
66

7+
## [3.59.0](https://github.com/googleapis/python-spanner/compare/v3.58.0...v3.59.0) (2025-10-18)
8+
9+
10+
### Features
11+
12+
* **spanner:** Add lazy decode to partitioned query ([#1411](https://github.com/googleapis/python-spanner/issues/1411)) ([a09961b](https://github.com/googleapis/python-spanner/commit/a09961b381314e3f06f1ff4be7b672cd9da9c64b))
13+
14+
15+
### Bug Fixes
16+
17+
* **spanner:** Resolve TypeError in metrics resource detection ([#1446](https://github.com/googleapis/python-spanner/issues/1446)) ([7266686](https://github.com/googleapis/python-spanner/commit/7266686d6773f39a30603061ae881e258421d927))
18+
19+
20+
### Documentation
21+
22+
* Add snippet for Repeatable Read configuration at client and transaction ([#1326](https://github.com/googleapis/python-spanner/issues/1326)) ([58e2406](https://github.com/googleapis/python-spanner/commit/58e2406af3c8918e37e0daadefaf537073aed1a4))
23+
724
## [3.58.0](https://github.com/googleapis/python-spanner/compare/v3.57.0...v3.58.0) (2025-09-10)
825

926

google/cloud/spanner_admin_database_v1/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "3.58.0" # {x-release-please-version}
16+
__version__ = "3.59.0" # {x-release-please-version}

google/cloud/spanner_admin_database_v1/services/database_admin/transports/grpc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ def __init__(
276276
options=[
277277
("grpc.max_send_message_length", -1),
278278
("grpc.max_receive_message_length", -1),
279+
("grpc.keepalive_time_ms", 120000),
279280
],
280281
)
281282

google/cloud/spanner_admin_database_v1/services/database_admin/transports/grpc_asyncio.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@ def __init__(
325325
options=[
326326
("grpc.max_send_message_length", -1),
327327
("grpc.max_receive_message_length", -1),
328+
("grpc.keepalive_time_ms", 120000),
328329
],
329330
)
330331

google/cloud/spanner_admin_instance_v1/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "3.58.0" # {x-release-please-version}
16+
__version__ = "3.59.0" # {x-release-please-version}

google/cloud/spanner_admin_instance_v1/services/instance_admin/transports/grpc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ def __init__(
285285
options=[
286286
("grpc.max_send_message_length", -1),
287287
("grpc.max_receive_message_length", -1),
288+
("grpc.keepalive_time_ms", 120000),
288289
],
289290
)
290291

google/cloud/spanner_admin_instance_v1/services/instance_admin/transports/grpc_asyncio.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@ def __init__(
334334
options=[
335335
("grpc.max_send_message_length", -1),
336336
("grpc.max_receive_message_length", -1),
337+
("grpc.keepalive_time_ms", 120000),
337338
],
338339
)
339340

google/cloud/spanner_dbapi/connection.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"""DB-API Connection for the Google Cloud Spanner."""
1616
import warnings
1717

18+
from google.api_core.client_options import ClientOptions
1819
from google.api_core.exceptions import Aborted
1920
from google.api_core.gapic_v1.client_info import ClientInfo
2021
from google.auth.credentials import AnonymousCredentials
@@ -734,6 +735,7 @@ def connect(
734735
client=None,
735736
route_to_leader_enabled=True,
736737
database_role=None,
738+
experimental_host=None,
737739
**kwargs,
738740
):
739741
"""Creates a connection to a Google Cloud Spanner database.
@@ -805,6 +807,10 @@ def connect(
805807
client_options = None
806808
if isinstance(credentials, AnonymousCredentials):
807809
client_options = kwargs.get("client_options")
810+
if experimental_host is not None:
811+
project = "default"
812+
credentials = AnonymousCredentials()
813+
client_options = ClientOptions(api_endpoint=experimental_host)
808814
client = spanner.Client(
809815
project=project,
810816
credentials=credentials,

0 commit comments

Comments
 (0)