On Aug 6, 7:43 pm, Shawn Van Ittersum <[email protected]> wrote:
> Hi Jeremy,
>
> Will the db << string syntax raise an error if there is something
> wrong with the SQL?  And can I execute the SQL inside a transaction,
> to rollback everything in case something goes wrong?

Yes, Sequel will raise an error if the database adapter raises an
error.

You can execute it inside a transaction: db.transaction{db << string}

Like I mentioned earlier, not all adapters support multiple SQL
statements in a single string.

Jeremy

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to