KiokuDB: looks seriously cool

| No Comments | No TrackBacks
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.

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!

No TrackBacks

TrackBack URL: http://www.codedright.net/mt/mt-tb.fcgi/19

Leave a comment

About this Entry

This page contains a single entry by Devin published on February 24, 2009 10:58 PM.

My first Catalyst::Helper was the previous entry in this blog.

KiokuDB model for Catalyst example is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Recent Photos

OpenID accepted here Learn more about OpenID
Powered by Movable Type 4.261