#32501: Add support for INSERT...RETURNING on SQLite 3.35+
-------------------------------------+-------------------------------------
     Reporter:  Mariusz Felisiak     |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Database layer       |                  Version:  dev
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Someday/Maybe
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  1                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Ian Foote):

 * easy:  0 => 1


Comment:

 This should be an easy ORM starter ticket.

 What will be required is adding an implementation of the
 {{{return_insert_columns}}} method to
 {{{django/db/backends/sqlite3/operations.py}}} and an implementation of
 {{{can_return_columns_from_insert}}} and
 {{{can_return_rows_from_bulk_insert}}} to
 {{{django/db/backends/sqlite3/features.py}}}. Reference implementations
 can be found in the corresponding files for other database backends.

 There are some existing tests in
 https://github.com/django/django/blob/main/tests/queries/test_db_returning.py.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32501#comment:1>
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 on the web visit 
https://groups.google.com/d/msgid/django-updates/065.1c2e48dbac0d5804066cd69a054263a4%40djangoproject.com.

Reply via email to