Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions docs/integrations/engines.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,17 +150,17 @@ DuckDB only works when running locally; therefore it does not support Airflow.

# Postgres
## Postgres - Local/Built-in Scheduler
| Option | Description | Type | Required |
|-------------------|--------------------------------------------------------------------------------------------------------------------------------------|:------:|:--------:|
| `host` | The hostname of the Postgres server | string | Y |
| `user` | The username to use for authentication with the Postgres server | string | Y |
| `password` | The password to use for authentication with the Postgres server | string | Y |
| `port` | The port number of the Postgres server | int | Y |
| `database` | The name of the database instance to connect to | string | Y |
| `keepalives_idle` | The number of seconds between each keepalive packet sent to the server. If set to 0, the system default will be used. (Default: `0`) | int | N |
| `connect_timeout` | The number of seconds to wait for the connection to the server. (Default: `10`) | int | N |
| `role` | The role to use for authentication with the Postgres server | string | N |
| `sslmode` | The security of the connection to the Postgres server. | string | N |
| Option | Description | Type | Required |
|-------------------|---------------------------------------------------------------------------------|:------:|:--------:|
| `host` | The hostname of the Postgres server | string | Y |
| `user` | The username to use for authentication with the Postgres server | string | Y |
| `password` | The password to use for authentication with the Postgres server | string | Y |
| `port` | The port number of the Postgres server | int | Y |
| `database` | The name of the database instance to connect to | string | Y |
| `keepalives_idle` | The number of seconds between each keepalive packet sent to the server. | int | N |
| `connect_timeout` | The number of seconds to wait for the connection to the server. (Default: `10`) | int | N |
| `role` | The role to use for authentication with the Postgres server | string | N |
| `sslmode` | The security of the connection to the Postgres server. | string | N |

## Postgres - Airflow
**Engine Name:** `postgres`
Expand Down
2 changes: 1 addition & 1 deletion sqlmesh/core/config/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ class PostgresConnectionConfig(_ConnectionConfig):
password: str
port: int
database: str
keepalives_idle: int = 0
keepalives_idle: t.Optional[int]
connect_timeout: int = 10
role: t.Optional[str] = None
sslmode: t.Optional[str] = None
Expand Down