#37115: Add support for Generic Relations / Table-Valued Expressions in the ORM
-------------------------------------+-------------------------------------
Reporter: Pravin | Owner: Pravin
Type: New feature | Status: assigned
Component: Database layer | Version: dev
(models, ORM) |
Severity: Normal | Resolution:
Keywords: Table-Valued | Triage Stage: Accepted
expressions, Set-returning |
functions, SRF, generate_series, |
Postgres, Orm |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Jacob Walls):
Wonderful. Here's one [https://forum.djangoproject.com/t/gsoc-2026
-interest-in-adding-support-for-generate-series-in-postgres/44362/2 forum
post] where Simon fleshes this idea out at more length.
Pravin started iterating on a design
[https://github.com/p-r-a-v-i-n/Generic---Relation---API-
Design/blob/main/RELATION_API_BLUEPRINT.md in a markdown document]. In it,
there was a first swing at representing a composite field with a `columns`
dict, and then some ideas about "intercepting" this later, but I agree
that Simon's proposal is more idiomatic, more general, and opens more
doors.
Pravin, would you be open to reimagining your design document as a small-
ish DEP that we could iterate on via a pull request workflow? From the
experience doing something similar with the `MAILERS` implementation in
Django 6.1, this won't arrest progress on the implementation, as you can
be iterating on a proof-of-concept in parallel.
--
Ticket URL: <https://code.djangoproject.com/ticket/37115#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/0107019e6f2213ed-a6c287fe-4638-40d4-98bf-4f88d6ca5f3e-000000%40eu-central-1.amazonses.com.