[odb-users] on_delete

David Sarrut David.Sarrut at creatis.insa-lyon.fr
Wed Jul 8 02:59:49 EDT 2015


Hello again,

it seems that when ondelete(cascade) pragma is used, the callback are not
called for the "ondeleted" record, am I right ?

David

On Wed, Jul 8, 2015 at 7:25 AM, David Sarrut <
David.Sarrut at creatis.insa-lyon.fr> wrote:

>
> exact yes ! Sorry, I missed that in the doc, thank you !
>
> David
>
> On Tue, Jul 7, 2015 at 5:17 PM, Boris Kolpackov <boris at codesynthesis.com>
> wrote:
>
>> 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
>>
>
>
>
> --
> David Sarrut, Phd
> Directeur de recherche CNRS
> CREATIS, UMR CNRS 5220, Inserm U 1044
> Centre de lutte contre le cancer Léon Bérard
> 28 rue Laënnec, 69373 Lyon cedex 08
> Tel : 04 78 78 51 51 / 06 74 72 05 42
> http://www.creatis.insa-lyon.fr/~dsarrut
> _________________________________
>  "2 + 2 = 5,  for extremely large values of 2"
> _________________________________
>



-- 
David Sarrut, Phd
Directeur de recherche CNRS
CREATIS, UMR CNRS 5220, Inserm U 1044
Centre de lutte contre le cancer Léon Bérard
28 rue Laënnec, 69373 Lyon cedex 08
Tel : 04 78 78 51 51 / 06 74 72 05 42
http://www.creatis.insa-lyon.fr/~dsarrut
_________________________________
 "2 + 2 = 5,  for extremely large values of 2"
_________________________________


More information about the odb-users mailing list