Deprecate usage of Connection::getDriverClass for some classes, and use standard autoloading instead

Created on 5 June 2021, about 3 years ago
Updated 20 July 2023, 11 months ago

Problem/Motivation

As noted in #3186934: Introduce an ExceptionHandler class in the database API, deprecate Connection::handleQueryException โ†’ , the way query classes are loaded by Connection is preventing static code analysis, besides being 'a magic' in the sense that they're autoloaded by placing files that override the base classes in the same directory where the Connection class resides.

Proposed resolution

While waiting for ๐Ÿ“Œ Convert select query extenders to backend-overrideable services RTBC , for now let's start changing most Database/Query classes to standard autoloading. This will reduce a lot boilerplate in contrib drivers.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

๐Ÿ“Œ Task
Status

Fixed

Version

11.0 ๐Ÿ”ฅ

Component
Databaseย  โ†’

Last updated about 4 hours ago

  • Maintained by
  • ๐Ÿ‡ณ๐Ÿ‡ฑNetherlands @daffie
Created by

๐Ÿ‡ฎ๐Ÿ‡นItaly mondrake ๐Ÿ‡ฎ๐Ÿ‡น

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024