[go-nuts] Re: ngrok/sqlmw: an abstraction for database/sql interceptors and middleware

2020-01-16 Thread Alan Shreve
("executed sql query", "duration", time.Since(startedAt), "query", query, "args", args, "err", err) return rows, err } On Thu, Jan 16, 2020 at 5:16 AM Alan Shreve wrote: > Hi golang-nuts - > > This is an abstraction that we needed at ng

[go-nuts] Re: ngrok/sqlmw: an abstraction for database/sql interceptors and middleware

2020-01-16 Thread Alan Shreve
And of course I forgot to include a link to the code as well. Sorry for all the messages. https://github.com/ngrok/sqlmw On Thu, Jan 16, 2020 at 5:19 AM Alan Shreve wrote: > Forgot to paste in an example, see below: > > func run(dsn string) { > // install the wr

[go-nuts] ngrok/sqlmw: an abstraction for database/sql interceptors and middleware

2020-01-16 Thread Alan Shreve
Hi golang-nuts - This is an abstraction that we needed at ngrok. It allows you to intermediate calls to a database/sql Driver just like a client-side grpc interceptor would. This makes it an excellent abstraction layer upon which to build instrumentation and other middleware-like functionality. T

Re: [go-nuts] Cross-linking cgo

2017-01-09 Thread Alan Shreve
field value > Projects/Golang/src/github.com/inconshreveable/gonative/gonative.go:70: > too many errors > > Any idea what's wrong? > > On Monday, May 5, 2014 at 3:06:49 PM UTC-4, Alan Shreve wrote: >> >> Kinda - >> >> You don’t really want gox to rebuild