Converts this query result as T
, using parser.
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
#withResult
#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
#withResult
Returns underlying result set
Returns underlying result set
Result set from executed query
ResultSet is initialized on first row (JDBC degraded)
ResultSet is initialized on first row (JDBC degraded)
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 from current result.
Processes all or some rows from current result.
Operation applied with row cursor
@annotation.tailrec def go(c: Option[Cursor], l: List[Row]): List[Row] = c match { case Some(cursor) => go(cursor.next, l :+ cursor.row) case _ => l } val l: Either[List[Throwable], List[Row]] = SQL"SELECT * FROM Test".withResult(go)
Executes this SQL statement as query, returns result as Row stream.
Executes this SQL statement as query, returns result as Row stream.
(Since version 2.4) Use fold, foldWhile or withResult instead, which manages resources and memory
Applies current parser with optionnal list of rows (0..n).
Applies current parser with optionnal list of rows (0..n).
(Since version 2.3.5) Use SQL("...").executeQuery().as(parser.*)
(Since version 2.3.2) Use as
Applies current parser to exactly on row.
Applies current parser to exactly on row.
(Since version 2.3.5) Use SQL("...").executeQuery().as(parser.single)
Applies current parser to one optional row.
Applies current parser to one optional row.
(Since version 2.3.5) Use SQL("...").executeQuery().as(parser.singleOpt)
A result from execution of an SQL query, row data and context (e.g. statement warnings).
Result set from executed query