GoogleCloudPlatform / GoogleCloudPlatform/cloud-sql-python-connector

Create `asyncpg` connections using pre-configured SSLSocket

Open
#792 2 comments 1 reaction 1 assignee Assigned to @hessjcg View on GitHub
priority: p2 type: feature request
Dominant language
Python
Stars
344
Forks
89
Avg merge
5h 33m
Merged PRs (30d)
2

Description

Need to update Python Connector to allow `asyncpg` connections through the use of a pre-configured SSLSocket or asyncio equivalent in order to unblock future IAM checks requiring a socket read/write prior to connecting to Cloud SQL.

Similar to [current pymysql implementation](https://github.com/GoogleCloudPlatform/cloud-sql-python-connector/blob/main/google/cloud/sql/connector/pymysql.py#L53) but through the use of asyncio's `loop.create_connection()`

This will require an up-stream patch to the asyncpg library.

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.