class Sequel::Postgres::JSONArray

Public Instance Methods

op() click to toggle source

Wrap the JSONArray 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, line 358
def op
  JSONOp.new(self)
end
sql_literal_append(ds, sql) click to toggle source

Cast as json

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