github.com/turbot/steampipe@v1.7.0-rc.0.0.20240517123944-7cef272d4458/tests/manual_testing/node_reuse/base_table_with/dashboard.sp (about)

     1  dashboard "base_query_with" {
     2    title = "base_query_with"
     3    table "foo"{
     4      base = table.t1
     5    }
     6  #
     7  #  graph "bar"{
     8  #    node "n1" {
     9  #      sql = <<-EOQ
    10  #    select
    11  #      $1 as id,
    12  #      $1 as title
    13  #EOQ
    14  #      args = [ with.n1.rows[0]]
    15  #    }
    16  #  }
    17  }
    18  
    19  
    20  table "t1"{
    21    with "n1" {
    22      query = query.q1
    23    }
    24    sql = "select $1"
    25    args = [ with.n1.rows[0]]
    26  #  args = ["foo"]
    27  }
    28  
    29  query "q1"{
    30    sql = "select '1'"
    31  
    32  }