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

    callback

    A 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

    callback

    A 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()