SPOPS::GDBMSPOPS::GDBM module can store SPOPS objects in a GDBM database. | |
Download |
SPOPS::GDBM Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Chris Winters
- Publisher web site:
- http://search.cpan.org/~cwinters/SPOPS-0.87/SPOPS/SQLInterface.pm
SPOPS::GDBM Tags
SPOPS::GDBM Description
SPOPS::GDBM module can store SPOPS objects in a GDBM database. SPOPS::GDBM module can store SPOPS objects in a GDBM database.SYNOPSIS my $obj = Object::Class->new; $obj->{parameter1} = 'this'; $obj->{parameter2} = 'that'; my $id = $obj->save;Implements SPOPS persistence in a GDBM database. Currently the interface is not as robust or powerful as the SPOPS::DBI implementation, but if you want more robust data storage, retrieval and searching needs you should probably be using a SQL database anyway.This is also a little different than the SPOPS::DBI module in that you have a little more flexibility as to how you refer to the actual GDBM file required. Instead of defining one database throughout the operation, you can change in midstream. (To be fair, you can also do this with the SPOPS::DBI module, it is just a little more difficult.) For example: # Read objects from one database, save to another my @objects = Object::Class->fetch_group({ filename => '/tmp/object_old.gdbm' }); foreach my $obj ( @objects ) { $obj->save({ is_add => 1, gdbm_filename => '/tmp/object_new.gdbm' }); } Requirements: · Perl
SPOPS::GDBM Related Software