Browse files

Docs for find-record.

  • Loading branch information...
1 parent 6c3c1b9 commit f08b5997a43bf61b7db3ed1c5e25716f7dbd4d2b @duelinmarkers committed Jul 23, 2009
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/clj_record/core.clj
2 src/clj_record/core.clj
@@ -79,6 +79,8 @@
(find-by-sql model-name (apply vector select-query values))))
(defn find-record
+ "Returns the first matching record. This is just (first (find-records ...)).
+ Note that at the moment there's no optimization to prevent the entire result set being read and converted into records."
[model-name attributes-or-where-params]
(first (find-records model-name attributes-or-where-params)))

0 comments on commit f08b599

Please sign in to comment.