in reply to Re^2: data historization with DBIx::Class
in thread data historization with DBIx::Class
As for the last part, check out DBIx::Class::ResultSet::HashRef. You use it as a parent class and then you get a handful of methods like hashref_rs which you can use as the end point of a chain.
For a similar but heavier (object inflation is more to much more expensive depending on your columns and inflation types) solution you can also rewrite this–
my $hash_ref = $o->as_hashref; # does this exist?–as–
my $hash_ref = { $o->get_columns };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: data historization with DBIx::Class
by morgon (Priest) on Dec 27, 2010 at 00:21 UTC | |
by Your Mother (Archbishop) on Dec 27, 2010 at 02:22 UTC |