qustavo / sqlhooks

Attach hooks to any database/sql driver
MIT License
652 stars 44 forks source link

feat: onError callback ignore error driver.ErrSkip. #53

Open fatelei opened 2 years ago

fatelei commented 2 years ago
image

for mysql driver,if InterpolateParams is false, it will return driver.ErrSkip. sqlhooks onError callback can ignore it. Then onError callback return this err, the golang sql package can handle it, do with remote prepare.