#35718: Some useful postgres functions for JSON are missing from contrib
-----------------------------+--------------------------------------------
     Reporter:  john-parton  |                     Type:  New feature
       Status:  new          |                Component:  contrib.postgres
      Version:  dev          |                 Severity:  Normal
     Keywords:               |             Triage Stage:  Unreviewed
    Has patch:  0            |      Needs documentation:  0
  Needs tests:  0            |  Patch needs improvement:  0
Easy pickings:  0            |                    UI/UX:  0
-----------------------------+--------------------------------------------
 There's a large number of postgres-specific functions for manipulating
 json: https://www.postgresql.org/docs/current/functions-json.html

 In my projects for work, I have created several:

 * jsonb_build_object
 * jsonb_build_array
 * jsonb_array_elements
 * jsonb_extract_path
 * jsonb_extract_path_text
 * jsonb_array_length

 It would be nice if these were included in `contrib.postgres.functions`,
 ideally in a submodule like `contrib.postgres.function.json` to allow room
 to expand.

 I know postgres's json support is a bit of test-bed for more fleshed out
 json support in general, but I would recommend just adding things as
 postgres-specific to limit the scope of the changes.

 I can open a basic pull request.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35718>
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/010701919f3e46ab-c819df9b-1f7f-4d59-913e-3988e9d24e02-000000%40eu-central-1.amazonses.com.

Reply via email to