class Sequel::Postgres::JSONValueOp

Object representing json_value calls

Attributes

on_empty[R]

How to handle cases where the JSON path expression evaluation yields an empty set.

returning[R]

The database type to cast returned values to

Public Class Methods

new(expr, path, opts=OPTS) click to toggle source

See JSONBaseOp#value for documentation of the options.

Calls superclass method Sequel::Postgres::JSONExistsOp::new
     # File lib/sequel/extensions/pg_json_ops.rb
1000 def initialize(expr, path, opts=OPTS)
1001   @returning = opts[:returning]
1002   @on_empty = opts[:on_empty]
1003   super
1004 end