Array
struct Array<Element>
-
Creates an array containing the elements of a cursor.
let cursor = try String.fetchCursor(db, "SELECT 'foo' UNION ALL SELECT 'bar'") let strings = try Array(cursor) // ["foo", "bar"]
Declaration
Swift
public init<C: Cursor>(_ cursor: C) throws where C.Element == Element