Take a row of data from the database and turn it into an in-memory representation of the row to work with.
The important thing here is the $table_mapping. It consists of an array of strings, where each string specifies a table name/field name specification. Table information is included as one select may select from more than one table (where foreign keys are involved).
A typical value may be “variety->fruit_id->name” which specifies that starting from the table “variety”, a look-up was made via the “fruit_id” column into another table, from which the field “name” has been loaded. It is stored in $values at the same array index as this string is in $table_mapping.
Values may have as few as one “->” if they come from the “base” table of the query, or may be nested deeply.
Parameters
ArrayRef $values | The values fetched from the database |
Object $sth | The DBI statement handle for the row fetched |
ArrayRef $table_mapping | Table information as described above |
Returns
ArrayRef | The inflated equivilent of $values, to be used in the object |
=end NaturalDocs