On Tue, Dec 7, 2010 at 6:49 PM, Marnen Laibow-Koser
<li...@ruby-forum.com> wrote:
> "Gustavo de Sá Carvalho Honorato" <gustavohonorato wrote in post
> #966998:
>> On Tue, Dec 7, 2010 at 6:25 PM, Marnen Laibow-Koser
>> <li...@ruby-forum.com> wrote:
>>>>
>>>> `dump_with_views'
>>>>
>>>
>>
> /home/gustavo/.rvm/gems/jruby-1.5.2/gems/activerecord-2.3.8/lib/active_record/schema_dumper.rb:19:in
>>>> `dump'
>>>>
>>>> Do you have any idea?
>>>
>>> Probably not a JRuby issue (though from the stack trace, it looks like
>>> it might be a JdbcAdapter issue). AFAIK that gem is pure Ruby, so it
>>> should work. Try it with MRI?
>>
>> I can't use MRI.
>
> You should at least be able to test the plugin with it, even if you
> can't use it for this project.
>
>> The project I'm working uses some Java Libs and JRuby
>> make more easy this integration.
>
> MRI + RJB is feasible too.  Depends on how you need the Java stuff.
>
>> I went back and tried to create the
>> views with raw SQL, but the views are not dumped to schema.rb. I'm
>> stuck without any ideas and my deadline is comming :(.
>
> You could set the schema_dumper to use SQL, but don't do that. :)
>
>>
>> I thought to reimplement this plugin, but I have no experience doing
>> this. Do you have any suggestions?
>
> It probably wouldn't be hard to patch the plugin to work with JDBC, if
> that's where your problem is.  It's generating pretty simple SQL.  Just
> look at how it generates the SQL for the adapters that it does support.
>
> I had to do something similar when I patched Foreigner to support MS SQL
> Server.  It was really pretty easy.

Thanks Marnen, I'll try to do this. I'll come back when have news.

>
> Best,
> --
> Marnen Laibow-Koser
> http://www.marnen.org
> mar...@marnen.org
>
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Ruby on Rails: Talk" group.
> To post to this group, send email to rubyonrails-t...@googlegroups.com.
> To unsubscribe from this group, send email to 
> rubyonrails-talk+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to