turbot / steampipe-plugin-sdk

Steampipe Plugin SDK is a simple abstraction layer to write a Steampipe plugin. Plugins automatically work across all engine types including the Steampipe CLI, Postgres FDW, SQLite extension and the export CLI.

Home Page:https://hub.steampipe.io/plugins

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for connection key columns

kaidaguerre opened this issue · comments

a ConnectionKeyColumn defines a column that has a value which maps 1-1 to a Steampipe connection
and so can be used to filter connections when executing an aggregator query

These columns are treated as (optional) KeyColumns. This means they are taken into account in the query planning

  • so it is more likely that the scans will be planned to use these as quals where possible.

When executing an aggregator query, if one of these columns is used as a qual, the execution code
will filter the list of connections by comparing the qual value with the column value returned by the
[ConnectionKeyColumn] Hydrate function.