Using SQL with Ruby code via the gem Mysql2