Ability to generate database statement from Seq[QueryParam[A]]
Given a Seq[QueryParam[A]] and a MetaMapper[A], there's currently no way to get the statement generated by these QueryParams when invoking MetaMapper[A]#findAll(...). It is therefore impossible to unit test modular queries or similar, and QueryParams become "black boxes", which introduces problems on its own.
By introducing a method like "MetaMapper[A]#createQuery(QueryParam[A]*)" and "MetaMapper[A]#createQuery(Seq[SelectableField], QueryParam[A]*)", these issues would be eliminated.
By introducing a method like "MetaMapper[A]#createQuery(QueryParam[A]*)" and "MetaMapper[A]#createQuery(Seq[SelectableField], QueryParam[A]*)", these issues would be eliminated.
Leave a comment
on 2010-05-28 23:18 *
By dpp
Status changed from Test to Fixed
Work remaining changed from 1.0 to 0.0
(In revision:b6dcbabb4c03b45bf9ed17bb2a838b9bb30e7c4e) Closes #512. Expose the method that calculates the SELECT query in MetaMapper
Branch: master
Branch: master