brianmario/mysql2 — pull request #377 by brianmario (2013-06-05 18:26:53+00:00)
Title: Add a `:discard_result` option

This will immediately discard any results returned meaning and makes it so `Mysql2::Client#query` will return `nil`. Like the other query options you can set it globally, per client or per query.

Using this in combination with `:streaming => true` is the most efficient way to send a query without libmysql or mysql2 parsing the result at all.

/cc @tmm1