title: Using prepared statement with MySQL2 gem?
body: <p>How do I create prepared statements for <code>insert</code> and <code>select</code> queries in MySQL? I am using the MySQL2 gem, and my connection object looks like this:</p>
  
  <pre><code> con = Mysql2::Client.new(:host =&gt; "#{ENV['DB_HOST']}", :port =&gt; '3306', :username =&gt; "#{ENV['DB_UNAME']}", :password =&gt; "#{ENV['DB_PWD']}", :database =&gt; 'dbname')
  </code></pre>