Le 2012-10-23 à 12:11, Jeremy Evans a écrit :
> On Monday, October 22, 2012 8:06:04 PM UTC-7, François Beausoleil wrote:
> Hmm, this is Database#copy_table, not Dataset#copy_table. I specifically need
> a Dataset. I've gone down the system("psql -c 'COPY ( SELECT * FROM ... ) TO
> stdout' > /path/to/outfile ...") route, so I'm good for now.
>
> Sorry about that, you are right that it is Database#copy_table, but you can
> pass a dataset to it, so you don't need to shell out to psql if you don't
> want to.
Oh, interesting! Didn't know about that, since it doesn't appear on
http://sequel.rubyforge.org/rdoc/classes/Sequel/Database.html. Is there a way
to make the docs appear for it? I see the method's definition is guarded with
SEQUEL_POSTGRES_USES_PG, which may not be set when the docs are generated.
I opened the gem and saw the implementation. This is perfect, as it's exactly
what I need.
Thanks!
François
--
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.