instance method select_value

Ruby on Rails 4.2.9

Since v4.2.9 Last seen in v4.2.9

Signature

select_value(arel, name = nil, binds = [])

No documentation comment.

Parameters

arel req
name opt = nil
binds opt = []
Source
# File activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rb, line 47
        def select_value(arel, name = nil, binds = [])
          arel, binds = binds_from_relation arel, binds
          sql = to_sql(arel, binds)
          execute_and_clear(sql, name, binds) do |result|
            result.getvalue(0, 0) if result.ntuples > 0 && result.nfields > 0
          end
        end

Defined in activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rb line 47 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::ConnectionAdapters::PostgreSQL::DatabaseStatements

Type at least 2 characters to search.

↑↓ navigate · open · esc close