> I'm writing store backend to cl-perec (http://common-lisp.net/project/ > cl-perec/). My question is, does a store have to guarantee, that > objects won't be persisted until persist-object is called. By default > cl-perec makes all objects persistent, so all changes in the objects > are automatically commited with the transaction. > > So, is it safe or does weblocks create any temporary objects which it > doesn't expect to be saved.
It's not really safe. We often want to delay persisting objects (and modifications to them) until we have verified the correctness of user data. The Elephant backend uses proxy classes and objects to achieve this behavior. This is also an option for cl-perec. Another option: IIRC cl-perec allows us to create transient instances that will be persisted later. I'm not sure whether it's possible to delay slot writes with it, though. So I suggest researching the capabilities of cl-perec and then deciding what approach is best. Leslie --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "weblocks" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/weblocks?hl=en -~----------~----~----~----~------~----~------~--~---
