mercredi 31 décembre 2014

How can I check that a SQL statement executed without error in Ruby?

I'm re-writing some scripts from PHP to Ruby.


In PHP I can put the SQL statement in a variable and execute it and then check the variable to see if it executed without error.


For example if ($query).


Documentation on SQL in Ruby is not as extensive as PHP.


How can I check that a SQL statement executed without error?


Thanks


Aucun commentaire:

Enregistrer un commentaire