Slackbot
06/05/2023, 6:02 PMDavid Hamilton
06/05/2023, 6:03 PMDavid Hamilton
06/05/2023, 6:05 PMOr Weis
06/05/2023, 6:16 PM"fetch_one": True
config entry to set achieve that.
And of course you can customize things even more by forking the fetcher and editing that process method:
https://github.com/permitio/opal-fetcher-postgres/blob/fee44e10240a094444c76f51bf6e7a5832f85891/src/opal_fetcher_postgres/provider.py#L172David Hamilton
06/05/2023, 7:07 PMfetch_one: bool = Field(
False,
description="whether we fetch only one row from the results of the SELECT query",
)
This actually only returns the first item from the listDavid Hamilton
06/05/2023, 7:08 PMDavid Hamilton
06/06/2023, 2:24 PMOr Weis
06/06/2023, 2:29 PMDavid Hamilton
06/07/2023, 2:03 PMDavid Hamilton
06/07/2023, 2:03 PMOr Weis
06/07/2023, 2:25 PMDavid Hamilton
06/07/2023, 2:26 PM