Design DAO in Ruby

I'm just wandering around if there is any link on how to properly design a DAO (data access object) with multiple connections to another data source. I need to build one on Ruby. In short, it should be an object that provides simplified access to data stored in SQL DB, noSQL DB, etc. The methods should be write data to another data source and extract data from different data sources, of course, you need to control access to the data source by priority, for example, noSQL is much faster than SQL, so the data must first be read with noSQL.

I am sure there should be some examples, please indicate them.

+4
source share
1 answer

Try datamapper: http://datamapper.org/

+2
source

Source: https://habr.com/ru/post/1384462/


All Articles