Method: Sequel::SQLite::JSONBaseOp#insert
- Defined in:
- lib/sequel/extensions/sqlite_json_ops.rb
#insert(path, value, *args) ⇒ Object
Returns an expression for creating new entries at the given paths in the JSON array or object, but not overwriting existing entries.
json_op.insert('$.a', 1) # json_insert(json, '$.a', 1)
json_op.insert('$.a', 1, '$.b', 2) # json_insert(json, '$.a', 1, '$.b', 2)
141 142 143 |
# File 'lib/sequel/extensions/sqlite_json_ops.rb', line 141 def insert(path, value, *args) wrapped_function(:insert, path, value, *args) end |