Skip to content
Merged
Changes from 1 commit
Commits
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
7 changes: 7 additions & 0 deletions google/cloud/spanner_dbapi/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,13 @@ def __init__(self, instance, database=None, read_only=False):
self._batch_dml_executor: BatchDmlExecutor = None
self._transaction_helper = TransactionRetryHelper(self)

@property
def spanner_client(self):
"""Client for interacting with Cloud Spanner API. This property exposes
the spanner client so that underlying methods could be accessed.
"""
return self._instance._client

@property
def autocommit(self):
"""Autocommit mode flag for this connection.
Expand Down