class Sequel::Postgres::JSONHash

Public Instance Methods

op() click to toggle source

Wrap the JSONHash instance in an JSONOp, allowing you to easily use the PostgreSQL json functions and operators with literal jsons.

    # File lib/sequel/extensions/pg_json_ops.rb
445 def op
446   JSONOp.new(self)
447 end
sql_literal_append(ds, sql) click to toggle source

Cast as json

    # File lib/sequel/extensions/pg_json.rb
113 def sql_literal_append(ds, sql)
114   super
115   sql << '::json'
116 end