Hi,

I've just started using Sequel recently, and there's two things I'd
like to clarify:

1. Are all datasets prepared in the background anyway? (For example, I
looked at the source for the DBI SQLite3 gem and even though you can
explicitly prepare statements it prepares them anyway when you run a
query - is the same happening in Sequel?)  I'm using it with Postges,
if that makes a difference.

2. Are the following statements equivalent?

    my_prepared_statement.call.first
    my_prepared_statement.first

I have tried both statements and they both give the same results, but
I'd like to be sure rather than make assumptions.


The reason I'd like to know these things is that I'd always prefer to
use prepared statements if I can, that it would save me a bit of code
if they're prepared by default, and I'd like to know if I need to know
the difference between any datasets being passed around if they need
to be handled differently.

Btw, I think it's a really helpful library. Kudos to the developers on
this!

Any help with this is much appreciated.

Regards,
Iain

-- 
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