execute(sql, name = nil)
public

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