Closed luna-duclos closed 7 years ago
You're right, great point.
After reading database/sql implementation, I've realized that:
Query("SELECT * FROM TABLE")
calls QueryContext(context.Background(), "SELECT * FROM TABLE")
. So effectively, by hooking to the Driver's Query
implementation will work for both cases.
done in #5
Go 1.8 has added a bunch of new interfaces that need to be wrapped, all the context related functions pretty much.