It is supported in all the major databases:
Oracle: ROW_NUMBER
Postgres: ROW_NUMBER
MYSQL: ROW_NUMBER since 8.0
Sqlite: ROW_NUMBER since 3.25.0
MSSQL: ROW_NUMBER all supported versions
Supporting it would help in use cases where the user is building records
that currently use python enumerate.
I'm not sure what a django-esque name would be, there are probably better
ones than row_number.
--
Ticket URL: <https://code.djangoproject.com/ticket/32346>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => invalid
Comment:
It's already supported using the `RowNumber`
[https://docs.djangoproject.com/en/3.1/ref/models/database-functions/
database function since Django 2.0].
--
Ticket URL: <https://code.djangoproject.com/ticket/32346#comment:1>
Comment (by Stuart Axon):
Thanks, I missed this somehow.
--
Ticket URL: <https://code.djangoproject.com/ticket/32346#comment:2>