[Dbix-class] DBIx::Class::Direct: what's wrong with that ?

Toby Corkindale toby.corkindale at strategicdata.com.au
Mon Jun 7 01:00:52 GMT 2010


On 06/06/10 09:13, Marc Chantreux wrote:
> hello all,
>
> I'm pretty new in the ORM world and i'm trying to figure out how to
> write very simple webapps as quick as possible. DBIx::Class is awesome
> and i would like to use it to add persistence to my buziness objects.
>
> For a given Users class, i would like to write Users->search({}), not
> $schema->resultset('Users')->search().
>
> I wrote a little package as a proof of concept:
[snip]


> But now i'm worry: if it was such a good idea, why didn't i found it on
> CPAN ? I see two answers:
>
> - it already exists and i missed it.
> - my idea is just stupid and i missed a point.
>
> In both cases, i really appreciate your advices.

Hi Marc,
Consider the use-case where you want to connect to two databases at once..

Toby



More information about the DBIx-Class mailing list