What ORM to use in one process multiple db connections sinatra application?

前端 未结 3 966
小蘑菇
小蘑菇 2021-01-05 19:22

Checked ActiveRecord, DataMapper, Sequel: some use globals (static variables) some require open db connection before loading source file with models. What ORM is better to u

3条回答
  •  清酒与你
    2021-01-05 19:35

    Personally I prefer Sequel for all my ORM and basic database accesses and is what I use with Sinatra/Padrino and any other time I need to access a database outside of Rails.

    I've used DataMapper but felt Sequel was easier and more flexible, but maybe that's just how my mind works. ActiveRecord is OK on its own, but I think it works best in combination with Rails.

    Which is "better"? I think that is subjective and mostly is tied to how your brain works.

提交回复
热议问题