ResultFetcher
public protocol ResultFetcher
A protocol for retrieving query results. All database plugins must implement this protocol.
-
Fetch the next row of the query result. This function is non-blocking.
Declaration
Swift
func fetchNext(callback: @escaping (([Any?]?, Error?)) -> ())Parameters
callbackA callback to call when the next row of the query result is ready.
-
Fetch the titles of the query result. This function is non-blocking.
Declaration
Swift
func fetchTitles(callback: @escaping (([String]?, Error?)) -> ())Parameters
callbackA callback to call when the column titles of the query result are ready.
-
Closes any underlying database connections and releases system resources synchronously
Declaration
Swift
func done()
View on GitHub
ResultFetcher Protocol Reference