[odb-users] on_delete

Boris Kolpackov boris at codesynthesis.com
Tue Jul 7 11:17:24 EDT 2015


Hi David,

David Sarrut <David.Sarrut at creatis.insa-lyon.fr> writes:

> I use a persistent table, say "MyFile", that store filename of a file
> stored on disk. When I delete a MyFile record, I should be able to delete
> the file on disk. Is a on_delete(myfunction) available in odb ? If not,
> how can I implement this thing ?

Perhaps what you are looking for is database operation callbacks (Section
14.1.7 in the ODB manual), specifically, the post_erase event?

Boris



More information about the odb-users mailing list