CurryInfo: cdbi-3.2.0 / Database.CDBI.ER.getEntries

definition:
getEntries :: Specifier ->
              EntityDescription a ->
              Criteria ->
              [Option] ->
              Maybe Int  ->
              DBAction [a]
getEntries spec en crit op limit = do
  let query = "select " ++ trSpecifier spec ++"* from '" ++ getTable en ++
                 "' " ++ trCriteria crit ++ trOption op ++ trLimit limit ++";"
  vals <- select query [] (getTypes en)
  return $ map (getToEntity en) vals
demand:
no demanded arguments
deterministic:
deterministic operation
documentation:
--- Gets entries from the database.
--- @param spec - Specifier All or Distinct
--- @param en - The EntityDescription that describes the entity
--- @param crit - Criteria for the query
--- @param op - oreder-by clause
--- @param limit - int value to limit number of entities returned
--- @return a `DBAction` with a list of entries
failfree:
<FAILING>
indeterministic:
referentially transparent operation
infix:
no fixity defined
iotype:
{(_,_,_,_,_) |-> _}
name:
getEntries
precedence:
no precedence defined
result-values:
_
signature:
Database.CDBI.Criteria.Specifier
-> Database.CDBI.Description.EntityDescription a
-> Database.CDBI.Criteria.Criteria -> [Database.CDBI.Criteria.Option]
-> Prelude.Maybe Prelude.Int -> Database.CDBI.Connection.DBAction [a]
solution-complete:
operation might suspend on free variables
terminating:
possibly non-terminating
totally-defined:
possibly non-reducible on same data term