googleapis / googleapis/google-cloud-python

_ConnectionFairy.connection attribute is deprecated

Open
#15,678 1 comment 0 reactions 1 assignee Assigned to @olavloite View on GitHub
api: spanner priority: p2 type: bug
Dominant language
Python
Stars
5.4k
Forks
1.8k
Avg merge
3d 4h
Merged PRs (30d)
122

Description

Looks like the library is using the deprecated `dbapi_connection.connection` and should switch to `dbapi_connection.driver_connection`

There are several occurrences in `sqlalchemy_spanner.py`

This recreates when using SQLAlchemy.

```
SADeprecationWarning: The _ConnectionFairy.connection attribute is deprecated; please use 'driver_connection' (deprecated since: 2.0) dbapi_connection = dbapi_connection.connection
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.