[CDBI] DBD::DBM
[prev]
[thread]
[next]
[Date index for 2005/10/13]
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
|