Is there any MySQL library for Ruby that supports parameterization? The documentation for mysql2 shows an example:
escaped = client.escape("gi'thu\"bbe\0r's") results = client.query("SELECT * FROM users WHERE group='#{escaped}'")
And that seems awkward and painful to me.
source share