Merge 'Add support for json_object function' from Jorge Hermo

Relates to #127.  This PR is still in draft and I have a few left things
to do (tests, improve implementation), just opening it so anyone can
track this work meanwhile.

Closes #664
This commit is contained in:
Pekka Enberg
2025-01-20 09:36:56 +02:00
6 changed files with 283 additions and 6 deletions

View File

@@ -235,7 +235,7 @@ Modifiers:
| Modifier | Status| Comment |
|----------------|-------|---------------------------------|
| Days | Yes | |
| Days | Yes | |
| Hours | Yes | |
| Minutes | Yes | |
| Seconds | Yes | |
@@ -274,7 +274,7 @@ Modifiers:
| json ->> path | Yes | |
| json_insert(json,path,value,...) | | |
| jsonb_insert(json,path,value,...) | | |
| json_object(label1,value1,...) | | |
| json_object(label1,value1,...) | Yes | When keys are duplicated, only the last one processed is returned. This differs from sqlite, where the keys in the output can be duplicated |
| jsonb_object(label1,value1,...) | | |
| json_patch(json1,json2) | | |
| jsonb_patch(json1,json2) | | |