Method: Sequel::Postgres::JSONExistsOp#initialize

Defined in:
lib/sequel/extensions/pg_json_ops.rb

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

See JSONBaseOp#exists for documentation on the options.

[View source]

906
907
908
909
910
911
912
# File 'lib/sequel/extensions/pg_json_ops.rb', line 906

def initialize(expr, path, opts=OPTS)
  @expr = expr
  @path = path
  @passing = opts[:passing]
  @on_error = opts[:on_error]
  freeze
end