I’m looking at ways to add more database support to reliable-msg. Currently thinking about using the Rails database adapters.
ActiveRecord has an ORM layer, which I’m not going to use, since the SQL statements are few and easy to write, and I generally like to know what SQL statements I’m executing against the database.
ActiveRecord also includes a layer of database adapters, with a single interface that can talk to any number of database drivers. That helps when you want to write the code only once. Currently it supports SQLite, MySQL, PostgreSQL, DB2, Oracle and SQL Server. So just pick which database to use from the configuration file.
You don’t need to be running Rails, ActiveRecord can be used on its own merit and in standalone applications running outside the Web server.
The downside is adding another dependency, which shouldn’t be a problem for anyone using Gems. At any rate, I expect we’ll see a few more Gem dependencies in the future, and more projects importing ActiveRecord. It’s a great way to build modular applications.
![63760739_42e72b9ed1[1].jpg](http://blog.labnotes.org/wp-content/uploads/2005/11/63760739_42e72b9ed1%5B1%5D.jpg)
