#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 Simon Charette):

 > It seems like this may be related to the ​suggestion to add CTE support
 to the ORM.

 I believe so. The moment we have

 1. A way to express a tuple of expressions (`CompositeField`) as
 `Expression.output_field`
 2. Adapted `BaseTable` and `Join` machinery to take advantage of 1.

 The only part missing to add support for CTE is to allow compilation
 directives to be attached to ''table like directive'' objects (e.g. a
 `TableExpression(Expression).output_field: CompositeField` that would
 serve as a base class for `BaseTable` and `Join`) to inform the
 compilation layer (`compiler.SQLCompiler`) that the resulting SQL should
 prefix the query instead of being inlined in the `FROM` clause.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/37115#comment:8>
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/0107019e703a4eef-21acd0df-39c0-4de5-b206-f10f67fd987f-000000%40eu-central-1.amazonses.com.

Reply via email to