You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DbMap struct has a ctx context.Context field, ctx can be set when initializing DbMap instance and can serve as timeout Context for all transactions based on this DbMap instance. All the transactions share the same timeout Context.
Sometimes user may want to create independent timeout Context per transaction, with timeout interval setting in DbMap instance.
The text was updated successfully, but these errors were encountered:
changren-wcr
changed the title
missing per-transaction Context of DbMap
Want per-transaction independent timeout Context with timeout interval setting in DbMap
Dec 30, 2022
changren-wcr
changed the title
Want per-transaction independent timeout Context with timeout interval setting in DbMap
per-transaction independent timeout Context with timeout interval setting in DbMap
Dec 30, 2022
changren-wcr
changed the title
per-transaction independent timeout Context with timeout interval setting in DbMap
per-transaction timeout interval setting in DbMap
Dec 30, 2022
DbMap
struct has actx context.Context
field,ctx
can be set when initializingDbMap
instance and can serve as timeoutContext
for all transactions based on thisDbMap
instance. All the transactions share the same timeoutContext
.Sometimes user may want to create independent timeout
Context
per transaction, with timeout interval setting inDbMap
instance.Pull request: #441
The text was updated successfully, but these errors were encountered: