http://www.perlmonks.org?node_id=557476


in reply to Re^5: Class::DBI vs. DBIx::Class
in thread Class::DBI vs. DBIx::Class

Thank you for the reference and for the warning. As you have suspected, it is "$schema->" that is bothering me. Writing it is not the problem, but it makes reading a bit harder, especially because it increases the chances that an expression does not fit on one line...

You say that there are better ways around it. Did you have something like sub resultset { $schema->resultset(@_) } in mind? This would indeed be a reasonable resolution of my concerns.

Replies are listed 'Best First'.
Re^7: Class::DBI vs. DBIx::Class
by rafl (Friar) on Jun 26, 2006 at 09:12 UTC
    You say that there are better ways around it. Did you have something like sub resultset { $schema->resultset(@_) } in mind? This would indeed be a reasonable resolution of my concerns.

    That's one solution that came to my mind, but as long as you keep the schema object around to be able to do transactions and stuff every solution that works around your problems is fine in my eyes.

    Cheers, Flo