Conrad Wood <c...@conradwood.net> writes:

> On Mon, 2018-09-10 at 09:44 +0200, Jan Mercl wrote:
>> 
>> On Mon, Sep 10, 2018 at 8:16 AM Conrad Wood <c...@conradwood.net>
>> wrote:
>> 
>> > Wdyt? Is that a patch that would be acceptable and generally
>> useful?
>> 
>> It could be tried and evaluated first as an external package.
>> 
>> -- 
>> -j
>
> Not sure I understand. The patch would have to be to sql.DB, wouldn't
> it?

Not necessarily. You can wrap database/sql with another package, that
adds the desired behavior.

Another (probably more elegant) alternative is to create a
database/sql/driver implementation that wraps another driver.Driver
implementation and adds the interceptor.

Free

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to