Module: Sequel::Postgres::JSONOpMethods
- Included in:
- LiteralString, SQL::GenericExpression, Symbol
- Defined in:
- lib/sequel/extensions/pg_json_ops.rb
Instance Method Summary collapse
-
#pg_json ⇒ Object
Wrap the receiver in an JSONOp so you can easily use the PostgreSQL json functions and operators with it.
-
#pg_jsonb ⇒ Object
Wrap the receiver in an JSONBOp so you can easily use the PostgreSQL jsonb functions and operators with it.
Instance Method Details
permalink #pg_json ⇒ Object
Wrap the receiver in an JSONOp so you can easily use the PostgreSQL json functions and operators with it.
1344 1345 1346 |
# File 'lib/sequel/extensions/pg_json_ops.rb', line 1344 def pg_json JSONOp.new(self) end |
permalink #pg_jsonb ⇒ Object
Wrap the receiver in an JSONBOp so you can easily use the PostgreSQL jsonb functions and operators with it.
1350 1351 1352 |
# File 'lib/sequel/extensions/pg_json_ops.rb', line 1350 def pg_jsonb JSONBOp.new(self) end |