PostgreSQLResultFetcher
public class PostgreSQLResultFetcher : ResultFetcher
An implementation of query result fetcher.
-
Fetch the next row of the query result. This function is non-blocking.
Declaration
Swift
public func fetchNext(callback: @escaping (([Any?]?, Error?)) -> ())
Parameters
callback
A closure that accepts a tuple containing an optional array of values of type Any? representing the next row from the query result and an optional Error.
-
Fetch the titles of the query result. This function is non-blocking.
Declaration
Swift
public func fetchTitles(callback: @escaping (([String]?, Error?)) -> ())
Parameters
callback
A closure that accepts a tuple containing an optional array of column titles of type String and an optional Error
-
Indicate no further calls will be made to this ResultFetcher allowing the connection in use to be released.
Declaration
Swift
public func done()