Handel::Storage::RDBO

jk2addict on 2006-12-13T04:06:21

Maybe as an act of defiance against the remaining tests missing labels, or as one last act of 'hey, it actually does work', but I'm somewhat done with a storage layer for Handel using Rose::DB::Object.

While DBIx::Class and Rose::DB::Object are conceptually close to each other, the storage layer is going swimmingly well. I guess that means that I did a fairly decent job of abstracting the storage layer. Ok, so that's why I really did it, to make sure things like this are actually plausible. :-)

Using it for the stock schema is really no more than changing:

__PACKAGE__->storage_class('Handel::Storage::DBIC::Cart');


to

__PACKAGE__->storage_class('Handel::Storage::RDBO::Cart');


If you're feeling naughty, use RDBO for the cart, and DBIC for the orders. And remember: Thout Shall Not Create Handel::Storage::CDBI. :-)

With any luck, it'll hit CPAN before the weekend is over. As far as Handel 1.0 goes, it's pretty much done, aside from some test labels and some more wait time on DBIx::Class 0.08.

Jan 1 and it's onword to Mango.