Add support for Common Table Expressions (CTE) to SelectInterface

Created on 8 October 2023, 8 months ago

Problem/Motivation

From Drupal 11, all of the supported DB engine versions will have support for common table expressions (CTEs),
At present to work with these, you need to use \Drupal\Core\Database\Connection::query which lacks the DX of working with SelectInterface

Steps to reproduce

Proposed resolution

Support passing a CTE to \Drupal\Core\Database\Connection::select as the first argument

Remaining tasks

The whole box and dice

User interface changes

API changes

Data model changes

Release notes snippet

✨ Feature request
Status

Active

Version

11.0 πŸ”₯

Component
DatabaseΒ  β†’

Last updated less than a minute ago

  • Maintained by
  • πŸ‡³πŸ‡±Netherlands @daffie
Created by

πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10

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

Comments & Activities

Production build 0.69.0 2024