From: Victor 'Zverok' Shepelev
> Of course, that's a first google request I've tried on my question, but it
> was several monthes ago. As for now, my third hit is:
>
http://blog.purepistos.net/index.php/2008/02/14/faster-applications-by-using
> -sql-over-orm/
>
> Is it was you've meant? In "Test 3" it really shows "CASCADE DELETE", but
I
> can't determine which version of Sequel of which hach it was used for this
> effect.

Yes, that's the one I meant. It shows you that you can use a before_destroy
hook to...well, do whatever you want, including deleting associated records.
It shows a way of finding an associated record.

If we go look at the documentation for Sequel, we see that the
before_destroy hook is still there. If you have any version of Sequel that
you happen to be using, you can also test this.

I understand the desire to find a single web page that says "With version
xxx of Sequel, with the setup used exactly by Victor 'Zverok' Shepelev,
here's a step-by-step manner for performing Cascading Delete, using the
exact table and column names that Victor uses in his database." I believe,
however, that if that's the way you hope to conduct research online, that
you will often be disappointed.

I believe that if you think about your problem, look at the documentation
for Sequel, read the three lines of code on that page again, and actually
try something on your own setup, you will quickly be able to craft a
solution that suits you perfectly.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sequel-talk" 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/sequel-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to