more meltano stuff
This commit is contained in:
parent
7e3a88faf3
commit
c0990bf87c
7 changed files with 286 additions and 25 deletions
3
pizza_dw/transform/.gitignore
vendored
Normal file
3
pizza_dw/transform/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
target/
|
||||
dbt_packages/
|
||||
logs/
|
||||
29
pizza_dw/transform/dbt_project.yml
Normal file
29
pizza_dw/transform/dbt_project.yml
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
name: my_meltano_project
|
||||
version: '1.0'
|
||||
profile: meltano
|
||||
config-version: 2
|
||||
require-dbt-version: [">=1.0.0", "<2.0.0"]
|
||||
flags:
|
||||
send_anonymous_usage_stats: False
|
||||
use_colors: True
|
||||
model-paths:
|
||||
- models
|
||||
analysis-paths:
|
||||
- analysis
|
||||
test-paths:
|
||||
- tests
|
||||
seed-paths:
|
||||
- data
|
||||
macro-paths:
|
||||
- macros
|
||||
snapshot-paths:
|
||||
- snapshots
|
||||
target-path: target
|
||||
log-path: logs
|
||||
packages-install-path: dbt_packages
|
||||
clean-targets:
|
||||
- target
|
||||
- dbt_packages
|
||||
- logs
|
||||
models:
|
||||
my_meltano_project: null
|
||||
0
pizza_dw/transform/models/.gitkeep
Normal file
0
pizza_dw/transform/models/.gitkeep
Normal file
46
pizza_dw/transform/profiles/postgres/profiles.yml
Normal file
46
pizza_dw/transform/profiles/postgres/profiles.yml
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
# Postgres config reference:
|
||||
meltano:
|
||||
target: "{{ env_var('MELTANO_ENVIRONMENT', 'dev') }}"
|
||||
outputs:
|
||||
dev:
|
||||
type: postgres
|
||||
host: "{{ env_var('DBT_POSTGRES_HOST') }}"
|
||||
user: "{{ env_var('DBT_POSTGRES_USER') }}"
|
||||
password: "{{ env_var('DBT_POSTGRES_PASSWORD') }}"
|
||||
port: "{{ env_var('DBT_POSTGRES_PORT') | int }}"
|
||||
dbname: "{{ env_var('DBT_POSTGRES_DBNAME', '') }}"
|
||||
schema: "{{ env_var('DBT_POSTGRES_SCHEMA') }}"
|
||||
threads: 2
|
||||
keepalives_idle: 0 # default 0, indicating the system default
|
||||
connect_timeout: 10 # default 10 seconds
|
||||
search_path: "{{ env_var('DBT_POSTGRES_SEARCH_PATH', '') }}" # optional, override the default postgres search_path
|
||||
role: "{{ env_var('DBT_POSTGRES_ROLE', '') }}" # optional, set the role dbt assumes when executing queries
|
||||
# sslmode: "{{ env_var('DBT_POSTGRES_SSLMODE', '').split() }}" # optional, set the sslmode used to connect to the database
|
||||
staging:
|
||||
type: postgres
|
||||
host: "{{ env_var('DBT_POSTGRES_HOST') }}"
|
||||
user: "{{ env_var('DBT_POSTGRES_USER') }}"
|
||||
password: "{{ env_var('DBT_POSTGRES_PASSWORD') }}"
|
||||
port: "{{ env_var('DBT_POSTGRES_PORT') | int }}"
|
||||
dbname: "{{ env_var('DBT_POSTGRES_DBNAME', '') }}"
|
||||
schema: "{{ env_var('DBT_POSTGRES_SCHEMA') }}"
|
||||
threads: 4
|
||||
keepalives_idle: 0 # default 0, indicating the system default
|
||||
connect_timeout: 10 # default 10 seconds
|
||||
search_path: "{{ env_var('DBT_POSTGRES_SEARCH_PATH', '') }}" # optional, override the default postgres search_path
|
||||
role: "{{ env_var('DBT_POSTGRES_ROLE', '') }}" # optional, set the role dbt assumes when executing queries
|
||||
# sslmode: "{{ env_var('DBT_POSTGRES_SSLMODE', '').split() }}" # optional, set the sslmode used to connect to the database
|
||||
prod:
|
||||
type: postgres
|
||||
host: "{{ env_var('DBT_POSTGRES_HOST') }}"
|
||||
user: "{{ env_var('DBT_POSTGRES_USER') }}"
|
||||
password: "{{ env_var('DBT_POSTGRES_PASSWORD') }}"
|
||||
port: "{{ env_var('DBT_POSTGRES_PORT') | int }}"
|
||||
dbname: "{{ env_var('DBT_POSTGRES_DBNAME', '') }}"
|
||||
schema: "{{ env_var('DBT_POSTGRES_SCHEMA') }}"
|
||||
threads: 6
|
||||
keepalives_idle: 0 # default 0, indicating the system default
|
||||
connect_timeout: 10 # default 10 seconds
|
||||
search_path: "{{ env_var('DBT_POSTGRES_SEARCH_PATH', '') }}" # optional, override the default postgres search_path
|
||||
role: "{{ env_var('DBT_POSTGRES_ROLE', '') }}" # optional, set the role dbt assumes when executing queries
|
||||
# sslmode: "{{ env_var('DBT_POSTGRES_SSLMODE', '').split() }}" # optional, set the sslmode used to connect to the database
|
||||
Loading…
Add table
Add a link
Reference in a new issue