Add support for with
blocks
#2772
Labels
autocomplete
core
complex or specific issues intended for implementation by the Steampipe core dev team issue
Query providers will allow a new block type called with. Similar to a with clause in a postgres CTE, the with block will allow users to specify additional queries or sql statements to run before running their sql/query.
A query provider may can contain 0 or more with blocks
With blocks are executed sequentially, in order (steampipe can parallelize them if it determines there are no dependencies).
The results of previous with queries are available to subsequent with queries, as well as to sql, args, and param.
with is not a top-level named resource - it is ONLY a block within query provider resources. The reuse pattern for with would be to use a named query, and reference that query in multiple with blocks.
The text was updated successfully, but these errors were encountered: