Initializergrdb 7.4.1GRDB->Swift

init(_:)

Creates a set containing the elements of a cursor.

Cursor.swift:173
init(_ cursor: some Cursor<Element>) throws

Parameters

cursor

A cursor of values to gather into a set.

// Set<String>
let cursor = try String.fetchCursor(db, ...)
let strings = try Set(cursor)