Skip to content

possibility to type driver error #10254

@guilopesn

Description

@guilopesn

Feature Description

In some applications with stricter typing rules, type any is disallowed. With that in mind, I believe a way to type the error coming from the driver is necessary.

The Solution

Implement a generic typing on QueryFailedError class with Error being de default type.

Considered Alternatives

I don't think of a better alternative with less impact.

Additional Context

No response

Relevant Database Driver(s)

  • aurora-mysql
  • aurora-postgres
  • better-sqlite3
  • cockroachdb
  • cordova
  • expo
  • mongodb
  • mysql
  • nativescript
  • oracle
  • postgres
  • react-native
  • sap
  • spanner
  • sqlite
  • sqlite-abstract
  • sqljs
  • sqlserver

Are you willing to resolve this issue by submitting a Pull Request?

Yes, I have the time, and I know how to start.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions