Method: Sequel::SQL::Builders#pg_jsonb_op

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

#pg_jsonb_op(v) ⇒ Object

Return the object wrapped in an Postgres::JSONBOp.



1427
1428
1429
1430
1431
1432
1433
1434
# File 'lib/sequel/extensions/pg_json_ops.rb', line 1427

def pg_jsonb_op(v)
  case v
  when Postgres::JSONBOp
    v
  else
    Postgres::JSONBOp.new(v)
  end
end