@@ -20,6 +20,13 @@ import Rel8.Table.Opaleye ( table, unpackspec )
2020import Rel8.Table.Recontextualize ( Selects )
2121
2222
23+-- | Select each row from a table definition. This is equivalent to @FROM
24+-- table@.
25+--
26+-- >>> mapM_ print =<< select c (each projectSchema)
27+-- Project {projectAuthorId = 1, projectName = "rel8"}
28+-- Project {projectAuthorId = 2, projectName = "aeson"}
29+-- Project {projectAuthorId = 2, projectName = "text"}
2330each :: Selects names exprs => TableSchema names -> Query exprs
2431each =
2532 fmap fromColumns .