[DBIx-Class-Devel] [dbix-class] add ResultSet::rs to force scalar context (#68)

andrewgregory notifications at github.com
Mon Nov 17 20:16:55 GMT 2014


rs is a simple helper method that does nothing but return the original
ResultSet in order to force scalar context for search methods.  This is
primarily intended for predefined queries in subclasses to allow them to
take advantage of search's context-aware return values without requiring
them to either manually force scalar context or define a second XXX_rs
search method to get a resultset object in list context.
You can merge this Pull Request by running:

  git pull https://github.com/andrewgregory/dbix-class rs_scalar

Or you can view, comment on it, or merge it online at:

  https://github.com/dbsrgits/dbix-class/pull/68

-- Commit Summary --

  * add ResultSet::rs to force scalar context

-- File Changes --

    M lib/DBIx/Class/ResultSet.pm (30)

-- Patch Links --

https://github.com/dbsrgits/dbix-class/pull/68.patch
https://github.com/dbsrgits/dbix-class/pull/68.diff

---
Reply to this email directly or view it on GitHub:
https://github.com/dbsrgits/dbix-class/pull/68
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scsys.co.uk/pipermail/dbix-class-devel/attachments/20141117/5fb5e3e9/attachment.htm>


More information about the DBIx-Class-Devel mailing list