SQL prepared statement gems for Ruby 1.9/2.0 -


is there specific gem using prepared statements sql database within ruby? i've used mysql2 gem in past, hard build native extension , lack of prepared statements not think right gem me.

i looking suggestions new database switch in ruby gem easier build without hassle, or gem supports prepared statements (or both!).

the purpose such projects need expose protocol internet , check data users can potentially tamper against database. example chat server stores static registered channels within database.

if there no gems have prepared statements or built in functionality prevent attacks unsanitized input, best way attempt sanitize user input before using database.

also note if ruby , not rails.

thank comments or answers can lead solution these questions.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -