Method: Sequel::Postgres::JSONBOp#set_lax
- Defined in:
- lib/sequel/extensions/pg_json_ops.rb
#set_lax(path, other, create_missing = true, null_value_treatment = 'use_json_null') ⇒ Object
The same as #set, except if other is nil, then behaves according to null_value_treatment, which can be one of ‘raise_exception’, ‘use_json_null’ (default), ‘delete_key’, or ‘return_target’.
816 817 818 |
# File 'lib/sequel/extensions/pg_json_ops.rb', line 816 def set_lax(path, other, create_missing=true, null_value_treatment='use_json_null') self.class.new(function(:set_lax, wrap_input_array(path), wrap_input_jsonb(other), create_missing, null_value_treatment)) end |