Method: Sequel::SQLite::JSONBaseOp#set

Defined in:
lib/sequel/extensions/sqlite_json_ops.rb

#set(path, value, *args) ⇒ Object

Returns an expression for creating or replacing entries at the given paths in the JSON array or object.

json_op.set('$.a', 1)           # json_set(json, '$.a', 1)
json_op.set('$.a', 1, '$.b', 2) # json_set(json, '$.a', 1, '$.b', 2)


189
190
191
# File 'lib/sequel/extensions/sqlite_json_ops.rb', line 189

def set(path, value, *args)
  wrapped_function(:set, path, value, *args)
end