Changes between Initial Version and Version 6 of Ticket #35718


Ignore:
Timestamp:
Aug 29, 2024, 10:50:21 PM (3 months ago)
Author:
john-parton
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35718

    • Property Has patch set
    • Property Patch needs improvement set
    • Property Needs documentation set
    • Property Needs tests set
    • Property Owner set to john-parton
    • Property Status newassigned
  • Ticket #35718 – Description

    initial v6  
    33In my projects for work, I have created several:
    44
    5 * jsonb_build_object
     5* ~~jsonb_build_object~~ -- Actually already implemented as `django.db.models.functions.JSONObject`
    66* jsonb_build_array
    77* jsonb_array_elements
    8 * jsonb_extract_path
    9 * jsonb_extract_path_text
     8* ~~jsonb_extract_path~~ Functionally equivalent to the `#>` operator
     9* ~~jsonb_extract_path_text~~ Functionally equivalent to the `#>>` operator
    1010* jsonb_array_length
     11
     12There also a few operators that I implemented as django functions
     13
     14* jsonb || jsonb -> jsonb - Concatenates two jsonb values
     15* jsonb - text -> jsonb - Deletes a key (and its value) from a JSON object
    1116
    1217It 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.
Back to Top