From: Gustaf N. <ne...@wu...> - 2014-02-06 18:19:18
|
Am 06.02.14 18:17, schrieb Wolfgang Winkler: > I've added a datatype "dict" to the list of possible DbiResults. ... > dict for {k v} $result { > set user_id [dict get $v user_id] > dict set result $k user_url "user?user_id=$user_id" > } ah, nice... updating the dict as result set is conveniant I hear Stephen in the background saying, why not set flat [dbi_rows -cols cols { select .... }] set dict [dbi_convert -format dict $cols $flat] dict for {k v} $dict { .... } will do some more tests about the "built-in" result types vs. the flat list converter over the weekend.... all the best -gn |