GoogleCloudPlatform / alloydb-python-connector

A Python library for connecting securely to your AlloyDB instances.
Apache License 2.0
28 stars 7 forks source link

Support initializing an AsyncConnector outside of an async context #203

Closed enocom closed 7 months ago

enocom commented 7 months ago

Feature Description

Our current AsyncConnector must be initialized in an async context. To make it easier to use, we should support initializing the AsyncConnector outside of an async context.

This probably means trying to get the running loop, and creating one if that fails.

Sample code

No response

Alternatives Considered

No response

Additional Details

No response

RahulDubey391 commented 7 months ago

Hi @jackwotherspoon, if it's not a WIP, I can have a look into the issue. But need some guidance on how to approach.

jackwotherspoon commented 7 months ago

@RahulDubey391 I will be taking this one as we have a tight deadline and I already have the change started. Will let you know as we open future issues if there are some that you can tackle if you would like 😄

RahulDubey391 commented 7 months ago

@RahulDubey391 I will be taking this one as we have a tight deadline and I already have the change started. Will let you know as we open future issues if there are some that you can tackle if you would like 😄

Sure @jackwotherspoon, no issues! I am happy to help anytime ☺

jackwotherspoon commented 7 months ago

Closed by #207