Are you aware of Class::DBI::Loader, and the Class::DBI output mode of SQL::Translator? Class::DBI::mysql/pg
Yes, thanks, good suggestions.
I'm not sure why you made the INSERT statement though.
Because I like my SQL to be explicit and visible and in one place and most of the data I deal with is in arrays, not hashes.
has_a() and has_many() ... have additional functionality that you're losing here.
I guess that's what I'm asking. What am I losing? Is what I'm losing just some nice shortcuts, or am I losing something essential to the kind of abstraction that Class::DBI supports?