Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Intercepting critical SQL inside DBI.pmby LanX (Saint) |
on Feb 22, 2023 at 14:36 UTC ( [id://11150529]=note: print w/replies, xml ) | Need Help?? |
For the record: I just stumbled over the documentation for callbacks in DBI https://metacpan.org/pod/DBI#Callbacks It's a powerful way to inspect method calls on all handles. It even provides a way to define callbacks an derived handles such that a database-handle $dbh defines callbacks for all children statement-handles $sth DBI is impressively feature rich, no need to hack the modules (once you managed to read all the documentation ;-)
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|