hello,
does anyone know of any modules that would allow me to “prepare” sql
strings? something similar to perl’s DBI::quote?
thanks
konstantin
hello,
does anyone know of any modules that would allow me to “prepare” sql
strings? something similar to perl’s DBI::quote?
thanks
konstantin
ActiveRecord::Base has ‘quote’ and ‘sanitize’ methods, among others.
thanks. is this a part of rails?
does anyone know of any modules that would allow me to “prepare” sql
strings? something similar to perl’s DBI::quote?
Did you check out ruby-dbi?
http://ruby-dbi.sourceforge.net/
Caleb
On 12/5/05, ako… [email protected] wrote:
does anyone know of any modules that would allow me to “prepare” sql
strings? something similar to perl’s DBI::quote?
Yes. DBI#quote.
-austin
On 12/5/05, ako… [email protected] wrote:
thanks. is this a part of rails?
ActiveRecord can be used with or without rails. It is in rails by
default, of course.
Below is an article on how to use it without rails:
http://wiki.rubyonrails.com/rails/pages/HowToUseActiveRecordOutsideRails
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs