Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
Description
Right now the Table class has a *rows function for grabbing a series of rows, but the only available formats for the returned data are an Array and an Object for each row, which contain the value from every column.
It would be useful to have the option to yield some kind of lazy accessor for each row, so that end users can only access the columns they are actually using. This would have caching benefits, and save us from doing dictionary lookups and/or string decodes on unused columns.
I'm not sure exactly what form this accessor would take. Perhaps a function that accepts a column name/index? Or an array with a function for each column? Or maybe there's some other new JS pattern that could accomplish this.