Changes between Initial Version and Version 6 of Ticket #35718
- Timestamp:
- Aug 29, 2024, 10:50:21 PM (4 months ago)
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
- Property Status new → assigned
-
Ticket #35718 – Description
initial v6 3 3 In my projects for work, I have created several: 4 4 5 * jsonb_build_object5 * ~~jsonb_build_object~~ -- Actually already implemented as `django.db.models.functions.JSONObject` 6 6 * jsonb_build_array 7 7 * jsonb_array_elements 8 * jsonb_extract_path9 * jsonb_extract_path_text8 * ~~jsonb_extract_path~~ Functionally equivalent to the `#>` operator 9 * ~~jsonb_extract_path_text~~ Functionally equivalent to the `#>>` operator 10 10 * jsonb_array_length 11 12 There 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 11 16 12 17 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.