範例 Airflow DAG 示範如何將資料庫從 Google Cloud Firestore 匯出到 Cloud Storage。
此範例在 Firestore 的預設命名空間中建立集合,在集合中新增一些資料,然後將此資料庫從 Cloud Firestore 匯出到 Cloud Storage。接著,它會從 BigQuery 中匯出的資料建立表格,並檢查資料是否在其中。
模組內容
-
tests.system.google.cloud.gcs.example_firestore.ENV_ID[原始碼]
-
tests.system.google.cloud.gcs.example_firestore.PROJECT_ID[原始碼]
-
tests.system.google.cloud.gcs.example_firestore.DAG_ID = 'firestore_to_gcp'[原始碼]
-
tests.system.google.cloud.gcs.example_firestore.BUCKET_NAME[原始碼]
-
tests.system.google.cloud.gcs.example_firestore.DATASET_NAME[原始碼]
-
tests.system.google.cloud.gcs.example_firestore.EXPORT_DESTINATION_URL[原始碼]
-
tests.system.google.cloud.gcs.example_firestore.EXPORT_COLLECTION_ID[原始碼]
-
tests.system.google.cloud.gcs.example_firestore.EXTERNAL_TABLE_SOURCE_URI[原始碼]
-
tests.system.google.cloud.gcs.example_firestore.DATASET_LOCATION = 'EU'[原始碼]
-
tests.system.google.cloud.gcs.example_firestore.KEYS[原始碼]
-
tests.system.google.cloud.gcs.example_firestore.create_bucket[原始碼]
-
tests.system.google.cloud.gcs.example_firestore.test_run[原始碼]