class Sequel::Postgres::JSONBHash

Public Instance Methods

op() click to toggle source

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

# File lib/sequel/extensions/pg_json_ops.rb, line 461
def op
  JSONBOp.new(self)
end
sql_literal_append(ds, sql) click to toggle source

Cast as jsonb

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