jreyesr / steampipe-plugin-postgres

A Steampipe plugin that provides access to data stored in plain Postgres servers
Apache License 2.0
6 stars 2 forks source link

Add config param to choose which tables will be exposed #1

Closed jreyesr closed 9 months ago

jreyesr commented 10 months ago

Per the Plugin Release Checklist,

If the plugin can generate dynamic tables, a configuration argument should allow users to specify which tables the plugin will generate. This configuration argument typically accepts a list of strings and should support filesystem glob patterns like in the CSV plugin.

If this configuration argument is not set or is explicitly empty, e.g., paths = [], then no dynamic tables should be generated.

Add a configuration param to ignore some tables, such as those that have non-handled columns.

jreyesr commented 10 months ago

Q: What's a good default? *? If so, what glob library can we use?

jreyesr commented 9 months ago

Solved on https://github.com/jreyesr/steampipe-plugin-postgres/commit/8ef5c2f7bd9cb0a7c9d6c561c71b8da3859772af, code based on https://github.com/turbot/steampipe-plugin-kubernetes