GoogleCloudPlatform / alloydb-python-connector

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

chore: update context manager sample usage #262

Closed jackwotherspoon closed 7 months ago

jackwotherspoon commented 7 months ago

Connector should not be initialized inside of getconn as this will result in a new Connector being initialized for every database connection, leading to quota issues and a not scalable solution.