Skip to content

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

@martinstuder

Description

@martinstuder

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

Metadata

Metadata

Assignees

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
No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions