Skip to content

[FEATURE] Ability to check if a connection has been closed #394

Description

Is your feature request related to a problem? Please describe.

Currently, checking whether a connection has been closed requires a workaround such as issuing a getinfo(...) request and intercepting an InterfaceError if the connection has been closed.

Describe the solution you'd like

Ideally, it would be possible to directly check if a connection has been closed, e.g. through a property closed.

Describe alternatives you've considered

Alternatives considered:

  • issuing a getinfo(...) request and intercepting InterfaceError
  • attempting to create a cursor and intercepting InterfaceError

Activity

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

Metadata

Metadata

Labels

area: api-compliancePython API behavior and typing: DB-API 2.0, exceptions, type stubs, new APIs.enhancementNew feature or requestinADOtriage doneIssues that are triaged by dev team and are in investigation.under development

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions