Ruby Object Mapper (ROM) is a useful experimental Ruby libraries to provide mapping capabilities objects without being limited by the maximum storage of our datastore. ROM was created on the basis of some of the concepts and decision making differently than usual as in the previous ORM Ruby. Any concept and its decisions?
- Datastore be better for the runtime environment
- Provide minimum infrastructure to handle the mapping and persistent
- Query datastore as the implementation of the private
- Does not require the complexity of query interfaces Abstract
- Reading and mutating data has different distict
- Simple in use datastore desired
The core concept is implemented in ROM with an adapter, relationships, mapper, and command.
ROM is not implemented in a special Ruby mode. As already mentioned, the ROM provides the minimum infrastructure to achieve its objectives. ROM is designed with ease of use so that even though the method avoided Class, Class can be accessed via the environment ROM. This means that the only Class that we need to interfaces only ROM.
All components are built independently ROM so that they can be used independently of each other. Not too tight is not it? Then followed the single responsibility principle. So we need to create an object that handles all of coercion, state, persistence, business logic validation and rule us. ROM provides an infrastructure that allows us to create a special class of small easily. Later this class will deal with each of these issues individually, and binds them together is simple.
Good news also came this week, has now been released 0.7.0 ROM. ROM developer, Piotr Solnica release on May 18, 2015. This release includes updates to the following gems:
- rom 0.7.0
- rom-sql 0.4.3
- rom-rail 0.3.2
ROM developers also develop new adapters include:
- rom-rethinkdb
- rom-Neo4j
- rom-event_store
- rom-influxdb
Thus if we have a limited datastore then we can use this ROM. Now that's a glimpse of ROM, Object Mapper for Ruby, Interested to try? Visit the official website at http://rom-rb.org/
Belum ada tanggapan untuk "What is Ruby Object Mapper ?"
Post a Comment