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.
| 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
#wrapper ⇒ Object (readonly)
How to handle wrapping of results
| 1106 1107 1108 | # File 'lib/sequel/extensions/pg_json_ops.rb', line 1106 def wrapper @wrapper end |