You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`host`| The hostname of the Postgres server | string | Y |
150
+
|`user`| The username to use for authentication with the Postgres server | string | Y |
151
+
|`password`| The password to use for authentication with the Postgres server | string | Y |
152
+
|`port`| The port number of the Postgres server | int | Y |
153
+
|`database`| The name of the database instance to connect to | string | Y |
154
+
|`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 |
155
+
|`connect_timeout`| The number of seconds to wait for the connection to the server. (Default: `10`) | int | N |
156
+
|`role`| The role to use for authentication with the Postgres server | string | N |
157
+
|`sslmode`| The security of the connection to the Postgres server. | string | N |
158
+
159
+
## Postgres - Airflow
160
+
**Engine Name:**`postgres`
161
+
162
+
The SQLMesh Postgres Operator is similar to the [PostgresOperator](https://airflow.apache.org/docs/apache-airflow-providers-postgres/stable/_api/airflow/providers/postgres/operators/postgres/index.html), and relies on the same [PostgresHook](https://airflow.apache.org/docs/apache-airflow-providers-postgres/stable/_api/airflow/providers/postgres/hooks/postgres/index.html) implementation.
163
+
164
+
To enable support for this operator, the Airflow Postgres provider package should be installed on the target Airflow cluster along with SQLMesh with the Postgres extra:
165
+
```
166
+
pip install "apache-airflow-providers-postgres"
167
+
pip install "sqlmesh[postgres]"
168
+
```
169
+
170
+
The operator requires an [Airflow connection](https://airflow.apache.org/docs/apache-airflow/stable/howto/connection.html) to determine the target Postgres account. Refer to [Postgres connection](https://airflow.apache.org/docs/apache-airflow-providers-postgres/stable/connections/postgres.html) for more details.
171
+
172
+
By default, the connection ID is set to `postgres_default`, but can be overridden using the `engine_operator_args` parameter to the `SQLMeshAirflow` instance as in the example below:
0 commit comments