Method: Sequel::Postgres::JSONTableOp#sequel_ast_transform
- Defined in:
- lib/sequel/extensions/pg_json_ops.rb
permalink #sequel_ast_transform(transformer) ⇒ Object
Support transforming of json_table expression
1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 |
# File 'lib/sequel/extensions/pg_json_ops.rb', line 1244 def sequel_ast_transform(transformer) opts = {:on_error=>@on_error, :_columns=>@columns} if @passing passing = opts[:passing] = {} @passing.each do |k, v| passing[k] = transformer.call(v) end end self.class.new(transformer.call(@expr), @path, opts) end |