chore(spanner): Issue#1163 Remove dependency of spanner dbapi from sp… · googleapis/python-spanner@fe20d41 · GitHub
Skip to content
This repository was archived by the owner on Jun 8, 2026. It is now read-only.

Commit fe20d41

Browse files
chore(spanner): Issue#1163 Remove dependency of spanner dbapi from spanner_v1 (#1164)
- Moved BatchTransactionId dataclass from spanner_dbapi to spanner_v1.transactions Co-authored-by: Sri Harsha CH <57220027+harshachinta@users.noreply.github.com>
1 parent 9609ad9 commit fe20d41

4 files changed

Lines changed: 14 additions & 8 deletions

File tree

google/cloud/spanner_dbapi/partition_helper.py

Lines changed: 2 additions & 7 deletions

google/cloud/spanner_v1/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
from .types.type import TypeAnnotationCode
6565
from .types.type import TypeCode
6666
from .data_types import JsonObject
67+
from .transaction import BatchTransactionId
6768

6869
from google.cloud.spanner_v1 import param_types
6970
from google.cloud.spanner_v1.client import Client
@@ -147,4 +148,5 @@
147148
# google.cloud.spanner_v1.services
148149
"SpannerClient",
149150
"SpannerAsyncClient",
151+
"BatchTransactionId",
150152
)

google/cloud/spanner_v1/database.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
from google.cloud.spanner_admin_database_v1 import RestoreDatabaseRequest
4141
from google.cloud.spanner_admin_database_v1 import UpdateDatabaseDdlRequest
4242
from google.cloud.spanner_admin_database_v1.types import DatabaseDialect
43-
from google.cloud.spanner_dbapi.partition_helper import BatchTransactionId
43+
from google.cloud.spanner_v1.transaction import BatchTransactionId
4444
from google.cloud.spanner_v1 import ExecuteSqlRequest
4545
from google.cloud.spanner_v1 import Type
4646
from google.cloud.spanner_v1 import TypeCode

google/cloud/spanner_v1/transaction.py

Lines changed: 9 additions & 0 deletions

0 commit comments

Comments
 (0)