title: Generate SQL queries with Ruby
body: <p>I want an easy way to generate SQL queries in Ruby. I know all about ActiveRecord, Sequel and DataMapper. I'm not looking for an ORM but just an easier way to generate SQL statement strings.</p>
  
  <p>I'm using <a href="http://github.com/forward/rbhive" rel="nofollow">RBHive</a> to run Hive queries and would like an easy way to generate the Hive query statements.</p>
  
  <p>Surely this exists (AR, etc) and I've looked at <a href="http://github.com/rails/arel" rel="nofollow">Arel</a>, which seems promising. But can't figure out how to strip the SQL statement generation pieces off of the popular ORM libraries. Everything requires a connection to a database server.</p>
  
  <p>Currently I just use raw SQL strings, but I want to get away from that as the queries are becoming more and more complex and error-prone.</p>
  
  <p>Any ideas?</p>