Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Intercepting critical SQL inside DBI.pm

by LanX (Saint)
on Feb 22, 2023 at 14:36 UTC ( [id://11150529]=note: print w/replies, xml ) Need Help??


in reply to Intercepting critical SQL inside DBI.pm

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
(addicted to the 𐍀𐌴𐍂𐌻 Programming Language :)
Wikisyntax for the Monastery

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11150529]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (1)
As of 2024-04-16 15:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found