glyn [Sat, 21 Feb 2015 20:05:53 +0000 (20:05 +0000)]
Had a play at making the following changes today, some will be a bit ugly as just testing and playing around:
- amend sql and add extension control file
- add in a basic replace function
- replace value comparison logic and handle nulls - this is still lacking
- move some duplicate logic out, but lots left
- have a go at putting together jsonb_replace_path and jsonb_delete_path functions, these are very rough and can be done better with proper thought.
glyn [Fri, 30 Jan 2015 21:36:35 +0000 (21:36 +0000)]
Changes:
* attempt to remove object restrictions and allow operations on arrays and scalars.
* add a single text only key delete function
* unsure how operations on jsonb arrays should work, if for example arrays elements are numeric or boolean
possible angles are:
do some funny casting to text :-(
create separate functions taking (jsonb, int), (jsonb, bool) etc :-(
# Please enter the commit message for your changes. Lines starting