tests.system.google.cloud.bigquery.example_bigquery_to_postgres
Example Airflow DAG for Google BigQuery service.
This DAG relies on the following OS environment variables
Module Contents
-
tests.system.google.cloud.bigquery.example_bigquery_to_postgres.ENV_ID[source]
-
tests.system.google.cloud.bigquery.example_bigquery_to_postgres.PROJECT_ID[source]
-
tests.system.google.cloud.bigquery.example_bigquery_to_postgres.DAG_ID = 'bigquery_to_postgres'[source]
-
tests.system.google.cloud.bigquery.example_bigquery_to_postgres.REGION = 'us-west2'[source]
-
tests.system.google.cloud.bigquery.example_bigquery_to_postgres.ZONE = 'us-west2-a'[source]
-
tests.system.google.cloud.bigquery.example_bigquery_to_postgres.NETWORK = 'default'[source]
-
tests.system.google.cloud.bigquery.example_bigquery_to_postgres.CONNECTION_ID = ''[source]
-
tests.system.google.cloud.bigquery.example_bigquery_to_postgres.CONNECTION_TYPE = 'postgres'[source]
-
tests.system.google.cloud.bigquery.example_bigquery_to_postgres.BIGQUERY_DATASET_NAME = ''[source]
-
tests.system.google.cloud.bigquery.example_bigquery_to_postgres.BIGQUERY_TABLE = 'test_table'[source]
-
tests.system.google.cloud.bigquery.example_bigquery_to_postgres.SOURCE_OBJECT_NAME = 'gs://airflow-system-tests-resources/bigquery/salaries_1k.csv'[source]
-
tests.system.google.cloud.bigquery.example_bigquery_to_postgres.BATCH_SIZE = 500[source]
-
tests.system.google.cloud.bigquery.example_bigquery_to_postgres.UPLOAD_DATA_TO_BIGQUERY[source]
-
tests.system.google.cloud.bigquery.example_bigquery_to_postgres.DB_NAME = 'testdb'[source]
-
tests.system.google.cloud.bigquery.example_bigquery_to_postgres.DB_PORT = 5432[source]
-
tests.system.google.cloud.bigquery.example_bigquery_to_postgres.DB_USER_NAME = 'root'[source]
-
tests.system.google.cloud.bigquery.example_bigquery_to_postgres.DB_USER_PASSWORD = 'demo_password'[source]
-
tests.system.google.cloud.bigquery.example_bigquery_to_postgres.SCHEMA[source]
-
tests.system.google.cloud.bigquery.example_bigquery_to_postgres.SETUP_POSTGRES_COMMAND = Multiline-String[source]
Show Value
"""
sudo apt update &&
sudo apt install -y docker.io &&
sudo docker run -d -p 5432:5432 --name testdb -e PGUSER=root -e POSTGRES_USER=root -e POSTGRES_PASSWORD=demo_password -e POSTGRES_DB=testdb postgres
"""
-
tests.system.google.cloud.bigquery.example_bigquery_to_postgres.SQL_TABLE = 'test_table'[source]
-
tests.system.google.cloud.bigquery.example_bigquery_to_postgres.SQL_CREATE_TABLE = 'CREATE TABLE IF NOT EXISTS test_table (emp_name VARCHAR(64), salary FLOAT)'[source]
-
tests.system.google.cloud.bigquery.example_bigquery_to_postgres.GCE_MACHINE_TYPE = 'n1-standard-1'[source]
-
tests.system.google.cloud.bigquery.example_bigquery_to_postgres.GCE_INSTANCE_NAME = ''[source]
-
tests.system.google.cloud.bigquery.example_bigquery_to_postgres.GCE_INSTANCE_BODY[source]
-
tests.system.google.cloud.bigquery.example_bigquery_to_postgres.FIREWALL_RULE_NAME = ''[source]
-
tests.system.google.cloud.bigquery.example_bigquery_to_postgres.CREATE_FIREWALL_RULE_COMMAND[source]
-
tests.system.google.cloud.bigquery.example_bigquery_to_postgres.DELETE_FIREWALL_RULE_COMMAND[source]
-
tests.system.google.cloud.bigquery.example_bigquery_to_postgres.log[source]
-
tests.system.google.cloud.bigquery.example_bigquery_to_postgres.create_bigquery_dataset[source]
-
tests.system.google.cloud.bigquery.example_bigquery_to_postgres.test_run[source]