3 ms·
It's been years since I investigated it but isn't ActiveRecord running in JRuby these days?
by pantulis 2y ago
It's been years since I investigated it but isn't ActiveRecord running in JRuby these days?
- nurettin 2y agoYes, rails targets jruby, so it should be possible to accomplish something similar with activerecord as well. I just like Sequel the way I like Sinatra.
- pantulis 2y agoGreetings from another Sinatra lover!
- Alifatisk 2y agoAre you saying it is compitable with JRuby (using a adapter) nowadays or are you saying ActiveRecord runs in a JRuby process when running Rails?
- pantulis 2y agoIt was a honest question, I was curious if, using JRuby, I could use ActiveRecord as an ORM instead of Sequel. I am not challenging any preference towards Sequel.
- Lio 2y agoYes you can use either. I think you might be slightly more limited in your choice of database drivers compared to MRI Ruby but I believe there’s a JDBC driver that should fill the gap.
- Alifatisk 2y agoI wasn't sure about how I should interpret your question or if it was statement, that's why I asked. Yes, you can use the jdbc adapter made by the JRuby team! https://github.com/jruby/activerecord-jdbc-adapter https://github.com/jruby/activerecord-jdbc-adapter Though, in my opinion, the best combo has been Sinatra + Sequel.