utilities

This commit is contained in:
counterweight 2025-07-25 16:51:18 +02:00
parent 7ed56d7a90
commit 7e3a88faf3
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
2 changed files with 14 additions and 1 deletions

View file

@ -22,4 +22,3 @@ run-rust:
setup-meltano-deps:
meltano init pizza_dw
cd pizza_dw && meltano add extractor tap-postgres && meltano add loader target-postgres

View file

@ -1,2 +1,16 @@
# Meltano Playground
- Install meltano
- start project
- add extractor and loader
- configure extractor and loader
- meltano run name-of-extractor name-of-loader
psql -h localhost -p 5432 -U app -d app_db -c "SELECT 'customers' AS table, COUNT(*) FROM public.customers UNION ALL SELECT 'pizza_orders', COUNT(*) FROM public.pizza_orders;"
psql -h localhost -p 5444 -U dw -d dw_db -c "SELECT 'customers' AS table, COUNT(*) FROM tap_app.customers UNION ALL SELECT 'pizza_orders', COUNT(*) FROM tap_app.pizza_orders;"