qustavo / sqlhooks

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

Add Rows wrapper and safetyhooks #37

Open qustavo opened 3 years ago

qustavo commented 3 years ago

Work in progress of safetyhooks, which panics when sql.Rows are not closed, this is useful to detect leaks. Based on sharp-edge finalizers https://crawshaw.io/blog/sharp-edged-finalizers.

coveralls commented 3 years ago

Coverage Status

Coverage decreased (-0.5%) to 75.746% when pulling 2c7ef1a5fca763a8e0033ce04f214760f44603d2 on safetyhooks into 1b9e7183e69f37a50efe0ec7eccea5990ff9dab4 on master.

coveralls commented 3 years ago

Coverage Status

Coverage decreased (-0.5%) to 75.746% when pulling 2c7ef1a5fca763a8e0033ce04f214760f44603d2 on safetyhooks into 1b9e7183e69f37a50efe0ec7eccea5990ff9dab4 on master.