[Catalyst] Re: [Handel] Handle support for non-CDBI ORMs
Christopher H. Laco
claco at chrislaco.com
Sat Nov 19 18:26:03 CET 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Drew Taylor wrote:
> (Cross posting to both lists because Handel will be used with Catalyst)
>
> I'm about to start on a project using Handel, but I'd like to try out other
> ORM packages (namely DBIx::Class or Rose::DB::Object). How tightly
> integrated is CDBI into Handel? Could I use Sweet or perhaps
> DBIx::Class::Compat(sp?) which should use the same interface as CDBI?
It's tied tighly to the point that without me mentioning it in the pod,
users of Handel wouldn't know. Within the realm of Catalyst, Handel IS
the model, not CDBI, and it doesn't use any ::Model::CDBI bits you may
have installed for the rest of a Catalyst app.
With that said, I did make it a point during the development of Handel
to esxpose my own API where appropriate, and not the API of CDBI. So,
Cart->items is Handels items, not the items created using has_many.
Cart->new is Handels new, not CDBI create/insert.
The fields like $cart->name still are the actual CDBI exposed field
accessors, but I figured that if I had to change CDBI for something
else, those would be easy to replicate, and would has the same name.
>
> BTW, the Handel article on perl.com <http://perl.com> was excellent. :-)
Thanks. Glad someone read it. ;-)
>
> Drew
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFDf2Ar+66dLHM50ssRAlvbAKClGTA+W6qdOrk9eIdOwtB/cXimAACgnY4o
u3N+t5P/IwzyAm3Mygfh0yc=
=gmB9
-----END PGP SIGNATURE-----
More information about the Catalyst
mailing list