method

execute

rails latest stable - Class: ActiveRecord::ConnectionAdapters::MysqlAdapter

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.1.0) is shown here.

execute(sql, name = nil)
public

Executes an SQL query and returns a MySQL::Result object. Note that you have to free the Result object after you’re done using it.