[CDBI] Record versioning

Christopher H. Laco claco at chrislaco.com
Tue Mar 14 19:05:00 GMT 2006


Eduardo Grosclaude wrote:
> Hello,
> I'm wondering, does some record versioning scheme exist in the Class::DBI
> world?
> I mean, say I augment my key with a version tag and override update() with
> some timestamping+insert()... How would its API be like? { firstversion(),
> lastversion(), nextversion(), firstversionafter(date),
> lastversionbefore(date)...}? Isn't this sort of thing likely to be useful to
> wiki-like applications?
> If there isn't such a thing, which would be a sane approach to implementing
> it?
> 
> --
> Eduardo Grosclaude
> Universidad Nacional del Comahue
> Neuquen, Argentina

I don't often point across the fence, but I think DBIC could handle this
quite sanely by making a custom Storage adapter that is version aware,
possibly using something like SVN behind the scenes to store versioned
copies.

As far as CDBI goes, I'm not sure where the magic would happen.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://lists.digitalcraftsmen.net/mailman/private/classdbi/attachments/20060314/e535b162/signature.pgp


More information about the ClassDBI mailing list