{"@context":"https://w3id.org/codemeta/3.0","@type":"SoftwareSourceCode","identifier":"pkg:golang/github.com/qustavo/sqlhooks","name":"github.com/qustavo/sqlhooks","description":"This example shows how to instrument sql queries in order to display the time that they consume\npackage main\n\nimport (\n\n)\n\n// Hooks satisfies the sqlhook.Hooks interface\ntype Hooks struct {}\n\n// Before hook will print the query with it's args and return the context with the timestamp\n\n// After hook will get the timestamp registered on the Before hook and print the elapsed time\n\n/*\nOutput should look like:\n\u003e CREATE TABLE t (id INTEGER, text VARCHAR(16)) []. took: 121.238µs\n\u003e INSERT into t (text) VALUES(?), (?) [\"foo\" \"bar\"]. took: 36.364µs\n\u003e SELECT id, text FROM t []. took: 4.653µs\n*/","version":"v1.3.0","softwareVersion":"v1.3.0","license":"https://spdx.org/licenses/MIT","codeRepository":"https://github.com/qustavo/sqlhooks","issueTracker":"https://github.com/qustavo/sqlhooks/issues","url":"https://github.com/qustavo/sqlhooks","programmingLanguage":{"@type":"ComputerLanguage","name":"Go"},"dateCreated":"2017-05-08","dateModified":"2019-11-25","datePublished":"2019-11-25","copyrightYear":2017,"downloadUrl":"https://proxy.golang.org/github.com/qustavo/sqlhooks/@v/v1.3.0.zip","softwareHelp":{"@type":"WebSite","url":"https://pkg.go.dev/github.com/qustavo/sqlhooks#section-documentation"},"applicationCategory":"go","runtimePlatform":"go","developmentStatus":"active","sameAs":["https://pkg.go.dev/github.com/qustavo/sqlhooks"],"https://www.w3.org/ns/activitystreams#likes":658,"https://forgefed.org/ns#forks":44}