Class: Sequel::Postgres::JSONQueryOp
- Inherits:
-
JSONValueOp
- Object
- SQL::Expression
- JSONExistsOp
- JSONValueOp
- Sequel::Postgres::JSONQueryOp
- Defined in:
- lib/sequel/extensions/pg_json_ops.rb
Overview
Object representing json_query calls
Instance Attribute Summary collapse
-
#wrapper ⇒ Object
readonly
How to handle wrapping of results.
Attributes inherited from JSONValueOp
Attributes inherited from JSONExistsOp
#expr, #on_error, #passing, #path
Instance Method Summary collapse
-
#initialize(expr, path, opts = OPTS) ⇒ JSONQueryOp
constructor
See JSONBaseOp#query for documentation of the options.
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
#wrapper ⇒ Object (readonly)
How to handle wrapping of results
1090 1091 1092 |
# File 'lib/sequel/extensions/pg_json_ops.rb', line 1090 def wrapper @wrapper end |