Attach hooks to any database/sql driver
Attach hooks to any database/sql driver.
The purpose of sqlhooks is to provide a way to instrument your sql statements, making really easy to log queries or measure execution time without modifying your actual code.
go get github.com/qustavo/sqlhooks/v2Requires Go >= 1.14.x
V2 isn't backward compatible with previous versions, if you want to fetch old versions, you can use go modules or get them from gopkg.in
go get github.com/qustavo/sqlhooks
go get gopkg.in/qustavo/sqlhooks.v1……No open issues yet, or sync has not completed.