Thanks, Jeremy.

Is there a reason why db.execute is a public method, if it shouldn't
be called from outside Sequel?  I had thought it was safe to call
because it was public.

On Aug 7, 8:39 am, Jeremy Evans <[email protected]> wrote:
> 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