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.



1116
1117
1118
1119
# File 'lib/sequel/extensions/pg_json_ops.rb', line 1116

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

Instance Attribute Details

#wrapperObject (readonly)

How to handle wrapping of results



1113
1114
1115
# File 'lib/sequel/extensions/pg_json_ops.rb', line 1113

def wrapper
  @wrapper
end