Perl's DBI::quote functionality?

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… removed_email_address@domain.invalid 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… removed_email_address@domain.invalid 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