File tree Expand file tree Collapse file tree
src/langchain_google_cloud_sql_pg Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ authors = [
1010]
1111
1212dependencies = [
13- " cloud-sql-python-connector[asyncpg] >= 1.7 .0, <2.0.0" ,
13+ " cloud-sql-python-connector[asyncpg] >= 1.10 .0, <2.0.0" ,
1414 " langchain-core>=0.1.1, <1.0.0 " ,
1515 " langchain-community>=0.0.18, <0.3.0" ,
1616 " numpy>=1.24.4, <2.0.0" ,
Original file line number Diff line number Diff line change 2222import aiohttp
2323import google .auth # type: ignore
2424import google .auth .transport .requests # type: ignore
25- from google .cloud .sql .connector import Connector , IPTypes
25+ from google .cloud .sql .connector import Connector , IPTypes , RefreshStrategy
2626from sqlalchemy import MetaData , Table , text
2727from sqlalchemy .exc import InvalidRequestError
2828from sqlalchemy .ext .asyncio import AsyncEngine , create_async_engine
@@ -158,6 +158,7 @@ async def _create(
158158 loop = asyncio .get_event_loop (),
159159 user_agent = USER_AGENT ,
160160 quota_project = quota_project ,
161+ refresh_strategy = RefreshStrategy .LAZY ,
161162 )
162163
163164 # if user and password are given, use basic auth
You can’t perform that action at this time.
0 commit comments