Registry / database / gchaincl-sqlhooks

gchaincl-sqlhooks

JSON →
library1.3.0gogounverified

sqlhooks provides hooks to instrument database/sql queries for logging and metrics.

go get github.com/gchaincl/sqlhooks
INSTALL
IMPORT
SIG · GCHAINCL-SQLHOOKS
G
gchaincl-sqlhooks
databasegov1.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

sqlhooks
github.com/gchaincl/sqlhooks

Register a wrapped SQLite driver with custom hooks.

package main import ( "database/sql" "github.com/gchaincl/sqlhooks" "github.com/mattn/go-sqlite3" ) func main() { sql.Register("sqlite3-with-hooks", sqlhooks.Wrap(&sqlite3.SQLiteDriver{}, &Hooks{})) db, _ := sql.Open("sqlite3-with-hooks", ":memory:") defer db.Close() }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.3.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
27 hits · last 30 days
node
22
OpenAI (training)
2
Resources
gchaincl-sqlhooks — go get gchaincl-sqlhooks · libregistry