Module: Sequel::Postgres::JSONOpMethods

Included in:
LiteralString, SQL::GenericExpression, Symbol
Defined in:
lib/sequel/extensions/pg_json_ops.rb

Instance Method Summary collapse

Instance Method Details

#pg_jsonObject

Wrap the receiver in an JSONOp so you can easily use the PostgreSQL json functions and operators with it.



659
660
661
# File 'lib/sequel/extensions/pg_json_ops.rb', line 659

def pg_json
  JSONOp.new(self)
end

#pg_jsonbObject

Wrap the receiver in an JSONBOp so you can easily use the PostgreSQL jsonb functions and operators with it.



665
666
667
# File 'lib/sequel/extensions/pg_json_ops.rb', line 665

def pg_jsonb
  JSONBOp.new(self)
end