On Tuesday, October 23, 2012 1:19:58 PM UTC-7, François Beausoleil wrote:
>
> 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.
>
It doesn't show up there, since the method is specific to the postgres
adapter. It shows up at
http://sequel.rubyforge.org/rdoc-adapters/classes/Sequel/Postgres/Database.html.
This is similar to all of the other adapter-specific methods.
AFAIK, RDoc doesn't actually use if statements to see if a method
definition should be documented, since it doesn't actually execute ruby
code (just attempts to parse it).
Thanks,
Jeremy
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/sequel-talk/-/_fqAGrNT-cAJ.
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.