Skip to content

Instance Method

first()

Returns the first output row, if any.
func first() -> EventLoopFuture<(any SQLRow)?>

Return Value

A future containing the first output row, if any.

Discussion

If self conforms to SQLPartialResultBuilder, limit(_:) is used to avoid loading more rows than necessary from the database.

See Also

Getting One Row