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
(addicted to the 𐍀𐌴𐍂𐌻 Programming Language :)
Wikisyntax for the Monastery
In reply to Re: Intercepting critical SQL inside DBI.pm
by LanX
in thread Intercepting critical SQL inside DBI.pm
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |