Class Sequel::Postgres::JSONBHash
In: lib/sequel/extensions/pg_json_ops.rb
lib/sequel/extensions/pg_json.rb
Parent: Object

Methods

Public Instance methods

Wrap the JSONBHash instance in an JSONBOp, allowing you to easily use the PostgreSQL jsonb functions and operators with literal jsonbs.

[Source]

     # File lib/sequel/extensions/pg_json_ops.rb, line 461
461:         def op
462:           JSONBOp.new(self)
463:         end

Cast as jsonb

[Source]

     # File lib/sequel/extensions/pg_json.rb, line 128
128:       def sql_literal_append(ds, sql)
129:         super
130:         sql << CAST_JSONB
131:       end

[Validate]