googleapis / langchain-google-cloud-sql-pg-python

Apache License 2.0
29 stars 11 forks source link

fix: add support for cross environment usage #176

Closed averikitsch closed 2 months ago

averikitsch commented 3 months ago

Due to the use of an async driver, sync and async interfaces can not be mixed with the opposite environment. If the Engine was initialized asynchronously, no self-managed loop is created therefore coroutines can not be scheduled to run synchronously.

https://docs.google.com/document/d/1Cf73cs5hTV0rCakK7rjZAPLk9RIsw1AS7o7GcDoTQg0

jackwotherspoon commented 3 months ago

@averikitsch do you mind adding a brief PR description going over what this fix: is fixing? :smile: