DatabaseCursor
public protocol DatabaseCursor : _DatabaseCursor
A protocol for cursors that iterate a database statement.
-
The statement iterated by the cursor
Declaration
Swift
var statement: Statement { get }
-
next()
Extension methodDeclaration
Swift
@inlinable public func next() throws -> Element?
-
forEach(_:
Extension method) Specific implementation of
forEach
, for a slight performance improvement due to the singlesqlite3_stmt_busy
check.Declaration
Swift
@inlinable public func forEach(_ body: (Element) throws -> Void) throws