I\'ve tried using google to answer this seemingly simple question, but to my surprise, it didn\'t help.
I have code in my rails application currently using the \'pre
The mysql2 gem now supports prepared statements according to the documentation.
mysql2
The syntax is as follows:
statement = @client.prepare("SELECT * FROM users WHERE login_count = ?") result1 = statement.execute(1) result2 = statement.execute(2)
This was added with a merged pull request in June 2015.