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.