is it possible to create a hook to catch all sql commands, but before being executed?

The offical for ZeosLib 7.3 Report problems, ask for help, post proposals for the new version of Zeoslib 7.3/v8
Quick Info:
-We made two new drivers: odbc(raw and unicode version) and oledb
-GUID domain/field-defined support for FB
-extended error infos of Firebird
-performance ups are still in queue
In future some more feature will arrive, so stay tuned and don't hassitate to help
Post Reply
LsJack
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: 29.09.2024, 12:57

is it possible to create a hook to catch all sql commands, but before being executed?

Post by LsJack »

i would like to know if it's possible to create a hook in TZConnection to capture all SQL commands, but before being executed. just point me in the right direction, and ill figure out how to implement it on my end.
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1956
Joined: 17.01.2011, 14:17

Re: is it possible to create a hook to catch all sql commands, but before being executed?

Post by marsupilami »

Hello,

it depends on what you want to do. If you want to log these statements, you need to use TZSQLMonitor. Otherwise you would have to implement some interface in Zeos that does these logging things. I would have to look for this interface though.

Best regards,

Jan
Post Reply