Creating an ELT pipeline in Orchest that extracts data from PostgreSQL and loads it to BigQuery using meltano and dbt.
To make the main pipeline work, you need a GOOGLE_APPLICATION_CREDENTIALS
environment variable pointing to a path containing a JSON key with BigQuery credentials (see instructions).
These commands were used to create the configuration file, using the Jupyter Console. There is no need to run them again.
! meltano init meltano
% cd meltano
! meltano add extractor tap-postgres
! meltano add loader target-bigquery
! meltano config tap-postgres set user postgres
! meltano config tap-postgres set dbname postgres
! meltano config tap-postgres set password ''
! meltano select tap-postgres '*' '*'
! meltano config tap-postgres set _metadata '*' replication-method FULL_TABLE
! meltano add transformer dbt-bigquery