instance method update_sql

Ruby on Rails 4.2.9

Since v4.2.9 Last seen in v4.2.9

Signature

update_sql(sql, name = nil)

Executes an UPDATE query and returns the number of affected tuples.

Parameters

sql req
name opt = nil
Source
# File activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rb, line 206
        def update_sql(sql, name = nil)
          super.cmd_tuples
        end

Defined in activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rb line 206 · 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