Skip to content
This repository was archived by the owner on Sep 10, 2024. It is now read-only.
This repository was archived by the owner on Sep 10, 2024. It is now read-only.

Make connection pools context managers #17

@kgaughan

Description

@kgaughan

It's more convenient and shorter to write this:

with pool:
    pass

Than it is to write this:

with pool.connect():
    pass

The former form ought to be possible.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions