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.



1093
1094
1095
1096
# File 'lib/sequel/extensions/pg_json_ops.rb', line 1093

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

Instance Attribute Details

#wrapperObject (readonly)

How to handle wrapping of results



1090
1091
1092
# File 'lib/sequel/extensions/pg_json_ops.rb', line 1090

def wrapper
  @wrapper
end