mdb/msql: add SQL.Context method
This commit is contained in:
parent
604da54903
commit
3aa69c5878
@ -56,3 +56,8 @@ func WithMySQL(parent context.Context, defaultDB string) (context.Context, *SQL)
|
|||||||
sql.ctx = ctx
|
sql.ctx = ctx
|
||||||
return mctx.WithChild(parent, ctx), sql
|
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()
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user