Thanks a lot for the fast response,
Your explanation totally make sense.

Cheers,
Martin

On Wednesday, September 6, 2017 at 11:06:35 AM UTC-4, Jeremy Evans wrote:
>
> On Wednesday, September 6, 2017 at 7:20:26 AM UTC-7, Martinos wrote:
>>
>> Is there a way to dump database views in ruby format using sequel?
>>
>
> No.  You can probably dump them as tables using the schema_dumper 
> extension (may require minor modifications to schema_dumper), but dumping 
> them as create_view operations in ruby format (without using raw SQL) is 
> asking for:
>
> 1) The easy part: determining the SQL used to create the view (requires 
> modifications to all shared adapters)
> 2) The hard part: writing a database-specific SQL parser for each database 
> and supported database version/configuration that can parse the SQL and 
> output a dataset.
>
> 2) is not feasible.
>
> Thanks,
> Jeremy
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to