Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^6: Class::DBI vs. DBIx::Class

by hrr (Monk)
on Jun 25, 2006 at 21:51 UTC ( #557476=note: print w/ replies, xml ) Need Help??


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.


Comment on Re^6: Class::DBI vs. DBIx::Class
Select or Download Code
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://557476]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (14)
As of 2014-08-29 15:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (281 votes), past polls