Paul Makepeace wrote:
> It definitely is a big improvement. I'm not knocking it hard, I use it
> in a project and don't regret it. Once you're into the territory of
> complex queries though it gets ugly, fast.
It also gets ugly if you want to do anything other than basic
create/update/delete/search. It's particularly hideous if you need
class methods whose internals touch the database, because the class
itself doesn't know about the database connection.
Saying this inside a class method:
$schema->resultset("Foo")->create({...})
(did I remember that right? it's certainly something long-winded anyway)
when you should be able to just say:
__PACKAGE__->create({...})
is bloody annoying cos it means that you have to keep track of the
database connection yourself and pass it around instead of the classes
just Doing The Right Thing like they do in Class::DBI.
--
David Cantrell | Enforcer, South London Linguistic Massive
There are many different types of sausages. The best are
from the north of England. The wurst are from Germany.
-- seen in alt.2eggs...
_______________________________________________
BristolBathPM mailing list
[email protected]
http://mailman.bristolbath.org/mailman/listinfo/bristolbathpm