> (sql-query-oneĀ database statement [mapfun]) -> result > (sql-query-allĀ database statement [mapfun accumulator]) -> state sql-get-one sql-get-all would be better names. They more obviously say that you get one result, or get all results. "Query" gets me thinking I might be making many queries at once or something.