How do you create prepared statements with the mysql2 gem?
问题 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 'prepare' method with the mysql gem. On switching to mysql2, this breaks with the error: undefined method `prepare' for #<Mysql2::Client::0....... So I tried looking for a version of the 'prepare' method but this search has been unsuccessful so far. Can anyone help me out with this? Edit: If this isn't possible, could anyone let me know