I was in #catalyst working on some Varnish (or at least attempting to get it working) when someone had an issue with DBIx::Class. I wasn't really paying attention until someone mentioned that ORMs are evil and they could look at KiokuDB as an alternative. It's a Moose based OO database system (object graph storage engine [thanks dandv]).
Basically, it looks cool.
Basically, it looks cool.
package Person;
has spouse => (
isa => __PACKAGE__,
is => "rw",
weak_ref => 1,
my $marge_id = $dir->store(
Person->new( name => "Marge Simpson" ),
);
);
{
my $scope = $dir->new_scope;
my ( $marge, $homer ) = $dir->lookup( $marge_id, $homer_id );
$marge->spouse($homer);
$homer->spouse($marge);
$dir->store( $marge, $homer );
}
That just looks *damn* cool to me!







Leave a comment