MetaWhere: AR 3.0 Query Syntax on Steroids
MetaWhere offers the ability to call all Arel predicate methods (matches_any, lt, gt, etc) on your model’s attributes instead of the ones normally offered by ActiveRecord’s hash parameters. It also adds convenient syntax for order clauses, smarter mapping of nested hash conditions, and a debug_sql method to see the real SQL your code is generating without running it against the database.
Comments
DataMapper also provides most all of the query syntax of MetaWare.
s/MetaWare/MetaWhere/g
Yep, DataMapper’s very slick. This is a nice alternative for folks who want to use ActiveRecord but miss the DM-like condition syntax.
Post a comment