PeerDB-io / peerdb

Fast, Simple and a cost effective tool to replicate data from Postgres to Data Warehouses, Queues and Storage
https://peerdb.io
Other
2.17k stars 88 forks source link

add env to mirror configs, overriding dynconf #2003

Closed serprex closed 1 month ago

heavycrystal commented 1 month ago

wondering if we can use https://pkg.go.dev/context#WithValue at the top level and then read at the env calls

serprex commented 1 month ago

wondering if we can use https://pkg.go.dev/context#WithValue at the top level and then read at the env calls

we could, but I prefer having explicit data flow, context will be prone to breaking in weird ways

Amogh-Bharadwaj commented 1 month ago

Documentation on usage here please :)