Opened 3 years ago
Last modified 3 years ago
#34238 closed New feature
Support computed `GENERATED ALWAYS` columns — at Initial Version
| Reported by: | Jeremy Nauta | Owned by: | nobody |
|---|---|---|---|
| Component: | Database layer (models, ORM) | Version: | dev |
| Severity: | Normal | Keywords: | generated, always, computed, field |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
Hi all, I would like to propose a way to add computed (i.e. GENERATED ALWAYS) database fields. This has been discussed in many different forms over the past several years:
- https://groups.google.com/g/django-developers/c/9Mf7YqDA4bg/m/wb07E71oAAAJ
- https://code.djangoproject.com/ticket/31300
- https://code.djangoproject.com/ticket/31565
The current database backend support for this feature has been thoroughly documented by Paulo here: https://groups.google.com/g/django-developers/c/9Mf7YqDA4bg/m/wb07E71oAAAJ.
Note:
See TracTickets
for help on using tickets.