Skip to content

Commit 8faaf7a

Browse files
committed
Chore: Add ability to configure a timeout in the GCP Postgres connection config
1 parent a8e8f93 commit 8faaf7a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

sqlmesh/core/config/connection.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,7 @@ class GCPPostgresConnectionConfig(ConnectionConfig):
482482
password: t.Optional[str] = None
483483
enable_iam_auth: t.Optional[bool] = None
484484
db: str
485+
timeout: t.Optional[int] = None
485486

486487
driver: str = "pg8000"
487488
type_: Literal["gcp_postgres"] = Field(alias="type", default="gcp_postgres")
@@ -517,6 +518,7 @@ def _connection_kwargs_keys(self) -> t.Set[str]:
517518
"password",
518519
"db",
519520
"enable_iam_auth",
521+
"timeout",
520522
}
521523

522524
@property

0 commit comments

Comments
 (0)