An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 1.6% on proxy.golang.org
Top 0.8% dependent packages on proxy.golang.org
Top 0.8% dependent repos on proxy.golang.org
Top 3.8% forks on proxy.golang.org
Top 0.3% docker downloads on proxy.golang.org

proxy.golang.org : github.com/qustavo/sqlhooks/v2

This example shows how to instrument sql queries in order to display the time that they consume package main import ( ) // Hooks satisfies the sqlhook.Hooks interface type Hooks struct {} // Before hook will print the query with it's args and return the context with the timestamp // After hook will get the timestamp registered on the Before hook and print the elapsed time /* Output should look like: > CREATE TABLE t (id INTEGER, text VARCHAR(16)) []. took: 121.238µs > INSERT into t (text) VALUES(?), (?) ["foo" "bar"]. took: 36.364µs > SELECT id, text FROM t []. took: 4.653µs */

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/qustavo/sqlhooks/v2
Keywords: database , driver , golang , instrumentation , opentracing , sql , sql-driver , tracing
License: MIT
Latest release: about 4 years ago
First release: almost 3 years ago
Namespace: github.com/qustavo/sqlhooks
Dependent packages: 33
Dependent repositories: 51
Stars: 658 on GitHub
Forks: 44 on GitHub
Docker dependents: 14
Docker downloads: 31,141,164
Total Commits: 108
Committers: 11
Average commits per author: 9.818
Development Distribution Score (DDS): 0.259
More commit stats: commits.ecosyste.ms
See more repository details: repos.ecosyste.ms
Last synced: about 14 hours ago

    Loading...
    Readme
    Loading...