develooper Front page | perl.kiokudb | Postings from October 2010

A save-everything-method for the lazy

From:
Michael Zedeler
Date:
October 13, 2010 02:44
Subject:
A save-everything-method for the lazy
Message ID:
4CB57F5C.4030407@zedeler.dk
  Hi KiokuDB users.

I miss a method that will save everything I have been working on without 
requiring me to distinguish between objects that needs to be stored 
(usually as non-root) and objects that should be updated.

Given this use case:

my $obj = $kiokudb->lookup('some-object');
$obj->add_some_object;
$obj->create_some_other_object;
$obj->delete_something_else;

I want to be able to write

$kiokudb->done;

And let KiokuDB figure out how my object graph looks like now and what 
needs to be stored.

I know that for updates, it will be necessary for the objects to be able 
to indicate whether they are dirty or not. This is against the fairly 
non-invasive strategy of KiokuDB.

Was something like this mentioned before?

Regards,

Michael.




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About