instance method
execute
Ruby on Rails 5.2.8.1
Since v2.2.3Signature
execute(sql, name = nil)
Executes the SQL statement in the context of this connection and returns the raw result from the connection adapter. Note: depending on your database connector, the result returned by this method may be manually memory managed. Consider using the exec_query wrapper instead.
Parameters
-
sqlreq -
nameopt = nil
Source
# File activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb, line 114
def execute(sql, name = nil)
raise NotImplementedError
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb line 114
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::DatabaseStatements