Skip to content

per-transaction timeout interval setting in DbMap #439

Description

@changren-wcr

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.

Pull request: #441

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions