Slackbot
02/02/2023, 2:39 PMAvo Sepp
02/02/2023, 2:46 PMConnectionparams
it says port number (defaults to 5432 if not provided)
. It seems like that assignment is coming from the base class. So if I don’t override it then that value will default to a postgres value in other fetchers? Am I understanding thatOr Weis
02/02/2023, 3:21 PMcould get a little background on how theThe idea is that fetch - brings the data, and process converts it to the right format needed for OPA. It could have been just one method - but this way creating variants (with inheritance) that cherry pick data from a source is much easier. And in general makes that flow and debugging it more elegant.function comes in_process_()
One more thing… in your postgres example forI believe the default comes from the underlying asyncpg lib, so it’s unrelated to theit saysConnectionparams
. It seems like that assignment is coming from the base class. So if I don’t override it then that value will default to a postgres value in other fetchers? Am I understanding thatport number (defaults to 5432 if not provided)
BaseFetchProvider