RFE: Please consider supporting dicts in db eval in Tcl interface
(1) By chwchw on 2023-07-22 08:26:39 [source]
As the title describes, in certain scenarios it can me advantageous to have the data of a row put into a dict instead of an array. A proof of concept implementation can be found in
https://www.androwish.org/home/info/98144dd78d2a1669
IMO this feature would be nice to have in a future release.
(2) By chwchw on 2023-07-23 03:28:54 in reply to 1 [link] [source]
Using dicts instead of an array in tdbc::sqlite3 gives an up to 10 percent performance improvement for collecting the result set. The final changes to tdbc::sqlite3 achieving this are in
(3) By Stephan Beal (stephan) on 2025-05-05 23:45:51 in reply to 1 [link] [source]
As the title describes, in certain scenarios it can me advantageous to have the data of a row put into a dict instead of an array.
With my apologies for the severe delay in this...
The -asdict
flag is now implemented at src:/timeline?r=tcl-cw and is tentatively scheduled for merging after the pending 3.50.0 release, as part of 3.51. It's functionally equivalent to your patch, so your existing code "should just work" when this change deploys.
Thank you for the suggestion and the example patch!