class Sequel::Postgres::JSONValueOp

  1. lib/sequel/extensions/pg_json_ops.rb
Superclass: JSONExistsOp

Object representing json_value calls

Methods

Public Class

  1. new

Public Instance

  1. on_empty
  2. returning

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)

See JSONBaseOp#value for documentation of the options.

[show source]
     # 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