开发者

castle activerecord rewrite sql

开发者 https://www.devze.com 2023-02-17 04:54 出处:网络
is there anyway to intercept the sql query before it is sent to the database and rew开发者_运维技巧rite it using castle active record ?Set up an interceptor and use OnPrepareStatement to modify the ge

is there anyway to intercept the sql query before it is sent to the database and rew开发者_运维技巧rite it using castle active record ?


Set up an interceptor and use OnPrepareStatement to modify the generated SQL. See this example.

0

精彩评论

暂无评论...
验证码 换一张
取 消