Skip to content

per-transaction timeout interval setting in DbMap #439

@changren-wcr

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

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