airflow.providers.google.cloud.transfers.postgres_to_gcs
¶
PostgreSQL 到 GCS 運算子。
模組內容¶
類別¶
以 JSON、CSV 或 Parquet 格式從 Postgres 複製資料到 Google Cloud Storage。 |
- class airflow.providers.google.cloud.transfers.postgres_to_gcs.PostgresToGCSOperator(*, postgres_conn_id='postgres_default', use_server_side_cursor=False, cursor_itersize=2000, **kwargs)[原始碼]¶
基底類別:
airflow.providers.google.cloud.transfers.sql_to_gcs.BaseSQLToGCSOperator
以 JSON、CSV 或 Parquet 格式從 Postgres 複製資料到 Google Cloud Storage。
另請參閱
如需如何使用此運算子的更多資訊,請參閱指南: PostgresToGCSOperator
- 參數
postgres_conn_id – 參考特定的 Postgres Hook。
use_server_side_cursor – 是否應使用伺服器端游標查詢 postgres。如需詳細資訊,請查看 https://www.psycopg.org/docs/usage.html#server-side-cursors
cursor_itersize – 在伺服器端游標的情況下,一次提取多少筆記錄。