[CDBI] DBD::DBM

[prev] [thread] [next] [Date index for 2005/10/13]

From: Ryan Tate
Subject: [CDBI] DBD::DBM
Date: 00:12 on 13 Oct 2005
Does anyone have any experience working with Class::DBI on top of
DBD::DBM? How'd it go?

I am refactoring an old script that uses MLDBM (DB_File with Storable)
to store objects --

my $obj =3D $Tied_hash{ $obj_id };
my $bar =3D $obj->{bar}
my @complex_data_structures =3D $obj->{foo}
...
$obj->{bar} =3D $new_bar;
$Tied_hash{ $obj_id } =3D $obj;

-- and Class::DBI + DBD::DBM may be the fastest way to get where I
want to go, which is roughly --

my $obj =3D Uber::Class->retrieve( $obj_id );
my $bar =3D $obj->bar;
my @complex_data_structures =3D $obj->foo;
...
$obj->bar($new_bar);
$obj->update;

Thanks for any help!

RT

_______________________________________________
ClassDBI mailing list
ClassDBI@xxxxx.xxxxxxxxxxxxxxxx.xxx
http://lists.digitalcraftsmen.net/mailman/listinfo/classdbi

[CDBI] DBD::DBM
Ryan Tate 00:12 on 13 Oct 2005

[CDBI] Re: DBD::DBM
Ryan Tate 00:18 on 13 Oct 2005

[CDBI] Re: DBD::DBM
Ryan Tate 17:04 on 13 Oct 2005

Re: [CDBI] Re: DBD::DBM
Tim Bunce 19:23 on 13 Oct 2005

Re: [CDBI] Re: DBD::DBM
Ryan Tate 20:34 on 15 Oct 2005

Re: [CDBI] Re: DBD::DBM
Ryan Tate 20:36 on 15 Oct 2005

Generated at 15:35 on 18 Oct 2005 by mariachi v0.52