Class: Sequel::Postgres::JSONQueryOp

Inherits:
JSONValueOp show all
Defined in:
lib/sequel/extensions/pg_json_ops.rb

Overview

Object representing json_query calls

Instance Attribute Summary collapse

Attributes inherited from JSONValueOp

#on_empty, #returning

Attributes inherited from JSONExistsOp

#expr, #on_error, #passing, #path

Instance Method Summary collapse

Methods inherited from JSONExistsOp

#sequel_ast_transform, #to_s_append

Methods inherited from SQL::Expression

#==, attr_reader, #clone, #eql?, #hash, inherited, #inspect

Constructor Details

#initialize(expr, path, opts = OPTS) ⇒ JSONQueryOp

See JSONBaseOp#query for documentation of the options.



1109
1110
1111
1112
# File 'lib/sequel/extensions/pg_json_ops.rb', line 1109

def initialize(expr, path, opts=OPTS)
  @wrapper = opts[:wrapper]
  super
end

Instance Attribute Details

#wrapperObject (readonly)

How to handle wrapping of results



1106
1107
1108
# File 'lib/sequel/extensions/pg_json_ops.rb', line 1106

def wrapper
  @wrapper
end