github.com/turbot/steampipe@v1.7.0-rc.0.0.20240517123944-7cef272d4458/tests/manual_testing/demo/references/query.sp (about) 1 variable "v1"{ 2 type = string 3 default = "v1" 4 } 5 6 variable "v2"{ 7 type = string 8 default = "v1" 9 } 10 11 12 query "q1"{ 13 title ="Q1" 14 description = var.v1 15 sql = "select 'ok' as status, 'foo' as resource, concat($1::text, $2::text, $3::text) as reason" 16 param "p1"{ 17 description = "p1" 18 default = var.v1 19 } 20 param "p2"{ 21 description = "p2" 22 default = var.v1 23 } 24 param "p3"{ 25 description = "p3" 26 default = var.v2 27 } 28 } 29