Method: Sequel::Postgres::JSONTableOp#initialize
- Defined in:
- lib/sequel/extensions/pg_json_ops.rb
#initialize(expr, path, opts = OPTS, &block) ⇒ JSONTableOp
See JSONBaseOp#table for documentation on the options.
1231 1232 1233 1234 1235 1236 1237 1238 |
# File 'lib/sequel/extensions/pg_json_ops.rb', line 1231 def initialize(expr, path, opts=OPTS, &block) @expr = expr @path = path @passing = opts[:passing] @on_error = opts[:on_error] @columns = opts[:_columns] || ColumnDSL.columns(&block) freeze end |