var arguments: StatementArguments
The statement arguments.
var columnCount: Int
The number of columns in the resulting rows.
var columnNames: [String]
The column names, ordered from left to right.
var databaseRegion: DatabaseRegion
The database region that the cursor looks into.
var isEmpty: Bool
Returns a Boolean value indicating whether the cursor does not contain any element.
var sql: String
The SQL query.
func compactMap<ElementOfResult>(@escaping (Element) throws -> ElementOfResult?) -> MapCursor<FilterCursor<MapCursor<Self, ElementOfResult?>>, ElementOfResult>
Returns a cursor over the concatenated non-nil results of mapping transform over this cursor.
func contains(Element) throws -> Bool
Returns a Boolean value indicating whether the cursor contains the given element.
func contains(where: (Element) throws -> Bool) throws -> Bool
Returns a Boolean value indicating whether the cursor contains an element that satisfies the given predicate.
func drop(while: @escaping (Element) throws -> Bool) -> DropWhileCursor<Self>
Returns a cursor that skips any initial elements that satisfy predicate
.
func dropFirst() -> DropFirstCursor<Self>
Returns a cursor containing all but the first element of the cursor.
func dropFirst(Int) -> DropFirstCursor<Self>
Returns a cursor containing all but the given number of initial elements.
func dropLast() throws -> [Element]
Returns an array containing all but the last element of the cursor.
func dropLast(Int) throws -> [Element]
Returns an array containing all but the given number of final elements.
func enumerated() -> EnumeratedCursor<Self>
Returns a cursor of pairs (n, x), where n represents a consecutive integer starting at zero, and x represents an element of the cursor.
func filter(@escaping (Element) throws -> Bool) -> FilterCursor<Self>
Returns the elements of the cursor that satisfy the given predicate.
func first(where: (Element) throws -> Bool) throws -> Element?
Returns the first element of the cursor that satisfies the given predicate or nil if no such element is found.
func flatMap<SegmentOfResult>(@escaping (Element) throws -> SegmentOfResult) -> FlattenCursor<MapCursor<Self, AnyCursor<SegmentOfResult.Element>>>
Returns a cursor over the concatenated results of mapping transform over self.
func flatMap<SegmentOfResult>(@escaping (Element) throws -> SegmentOfResult) -> FlattenCursor<MapCursor<Self, SegmentOfResult>>
Returns a cursor over the concatenated results of mapping transform over self.
func forEach((Element) throws -> Void) throws
func joined() -> FlattenCursor<Self>
Returns the elements of this cursor of cursors, concatenated.
func joined() -> FlattenCursor<MapCursor<Self, AnyCursor<Element.Element>>>
Returns the elements of this cursor of sequences, concatenated.
func joined(separator: String) throws -> String
Returns the elements of this cursor of sequences, concatenated.
func map<T>(@escaping (Element) throws -> T) -> MapCursor<Self, T>
Returns a cursor over the results of the transform function applied to this cursor’s elements.
func max() throws -> Element?
Returns the maximum element in the cursor.
func max(by: (Element, Element) throws -> Bool) throws -> Element?
Returns the maximum element in the cursor, using the given predicate as the comparison between elements.
func min() throws -> Element?
Returns the minimum element in the cursor.
func min(by: (Element, Element) throws -> Bool) throws -> Element?
Returns the minimum element in the cursor, using the given predicate as the comparison between elements.
func next() throws -> Element?
func prefix(Int) -> PrefixCursor<Self>
Returns a cursor, up to the specified maximum length, containing the initial elements of the cursor.
func prefix(while: @escaping (Element) throws -> Bool) -> PrefixWhileCursor<Self>
Returns a cursor of the initial consecutive elements that satisfy predicate
.
func reduce<Result>(Result, (Result, Element) throws -> Result) throws -> Result
Returns the result of calling the given combining closure with each element of this cursor and an accumulating value.
func reduce<Result>(into: Result, (inout Result, Element) throws -> Void) throws -> Result
Returns the result of calling the given combining closure with each element of this cursor and an accumulating value.
func suffix(Int) throws -> [Element]
Returns an array, up to the given maximum length, containing the final elements of the cursor.