mdb/msql: add SQL.Context method

This commit is contained in:
Brian Picciano 2019-02-24 17:07:35 -05:00
parent 604da54903
commit 3aa69c5878

View File

@ -56,3 +56,8 @@ func WithMySQL(parent context.Context, defaultDB string) (context.Context, *SQL)
sql.ctx = ctx
return mctx.WithChild(parent, ctx), sql
}
// Context returns the annotated Context from this instance's initialization.
func (sql *SQL) Context() context.Context {
return sql.Context()
}