Skip to content

Instantly share code, notes, and snippets.

@AbdulR3hman
Created July 27, 2015 14:12
Show Gist options
  • Save AbdulR3hman/af1d5a6835374d9aa071 to your computer and use it in GitHub Desktop.
Save AbdulR3hman/af1d5a6835374d9aa071 to your computer and use it in GitHub Desktop.
Assume we have the following SQL in our ruby;
"Select * from employee em where em.id = 1"
now, I want to keep my sql in a seperate file and do the following
sql.exec (employee, 3) and this would call the above sql with a toknized id and filters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment