Converts this query result as T
, using parser.
Aggregates over all rows using the specified operator.
Aggregates over all rows using the specified operator.
the start value
Aggregate operator
Either list of failures at left, or aggregated value
#withIterator
#foldWhile
Aggregates over part of or the while row stream, using the specified operator.
Aggregates over part of or the while row stream, using the specified operator.
the start value
Aggregate operator. Returns aggregated value along with true if aggregation must process next value, or false to stop with current value.
Either list of failures at left, or aggregated value
#withIterator
Result set from executed query
Query statement already executed
Returns statement warning if there is some for this result.
Returns statement warning if there is some for this result.
val res = SQL("EXEC stored_proc {p}").on("p" -> paramVal).executeQuery() res.statementWarning match { case Some(warning) => warning.printStackTrace() None case None => // go on with row parsing ... res.as(scalar[String].singleOpt) }
Processes all or some rows through iterator for current results.
Processes all or some rows through iterator for current results.
Operation applied with row iterator
val l: Either[List[Throwable], List[Row]] = SQL"SELECT * FROM Test". withIterator(_.toList)
Returns stream of row from query result.
Returns stream of row from query result.
(Since version 2.4) Use fold, foldWhile or withIterator instead, which manages resources and memory
(Since version 2.3.2) Use as
A result from execution of an SQL query, row data and context (e.g. statement warnings).
Result set from executed query