Sqlhooks Versions Save

Attach hooks to any database/sql driver

v2.0.0

3 years ago

Changes

⚠️ Support for drivers not implementing dbconn.ConnBeginTx has been dropped starting v2.0.

v1.3.0

4 years ago

Changes

  • Allow composing Hooks #12 (@ccmtaylor)
  • Remote go get from travis (@gchaincl)

v1.2.0

4 years ago

Changes

  • Add go mod support and update travis #26 (@gchaincl)
  • Add QueryerContext interface #23 (@surki)

v1.1.0

6 years ago

Changes

  • Add benchmarks #9 (@gchaincl)
  • Add OpenTracing hooks #8 (@gchaincl)
  • Return an ExecerContext if conn is an execer (@keegancsmith)
  • Implement driver.Execer (@keegancsmith)
  • add error handler [ErrHook] #10 (@xuzhenglun)

v1.0.0

7 years ago

API has been rewritten (yes, again), go supported versions prior 1.8 has been dropped.

v0.4

7 years ago

v0.3

7 years ago

Changes:

  • Hooks receive a Context rather than (query, args) tuple
  • All hooks have the same signature
  • Hooks are now an interface rather than a concrete Type
  • Hooks can stop execution (thanks @nkev)

v0.2

8 years ago
  • Register() has been removed, use sql.Register() instead.
  • Open holds a map of registered drivers to prevent duplications

v0.1

8 years ago

API still young, it may change, but everything seems to be working