File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -14,20 +14,24 @@ class Settings(BaseSettings):
1414 mcp_server_port : int = 8050
1515
1616 postgres_dsn : PostgresDsn = (
17- "postgresql+psycopg ://postgres:[email protected] :6543/postgres" 17+ "postgresql://postgres:[email protected] :6543/postgres" 1818 )
1919
2020 @computed_field
2121 @property
2222 def orm_conn_str (self ) -> str :
23- return self .postgres_dsn .encoded_string ()
23+ # NOTE: Explicitly follow LangGraph AsyncPostgresSaver
24+ # and use psycopg driver for ORM
25+ return self .postgres_dsn .encoded_string ().replace (
26+ "postgresql://" , "postgresql+psycopg://"
27+ )
2428
2529 @computed_field
2630 @property
2731 def checkpoint_conn_str (self ) -> str :
2832 # NOTE: LangGraph AsyncPostgresSaver has some issues
2933 # with specifying psycopg driver explicitly
30- return self .postgres_dsn .encoded_string (). replace ( "+psycopg" , "" )
34+ return self .postgres_dsn .encoded_string ()
3135
3236
3337settings = Settings ()
You can’t perform that action at this time.
0 commit comments