MySQLResultFetcher

public class MySQLResultFetcher: ResultFetcher

An implementation of query result fetcher.

  • Fetch the next row of the query result. This function is blocking.

    Returns

    An array of values of type Any? representing the next row from the query result.

    Declaration

    Swift

    public func fetchNext() -> [Any?]?

    Return Value

    An array of values of type Any? representing the next row from the query result.

  • Fetch the next row of the query result. This function is non-blocking.

    Parameter

    Parameter callback: A callback to call when the next row of the query result is ready.

    Declaration

    Swift

    public func fetchNext(callback: ([Any?]?) ->())

    Parameters

    callback

    A callback to call when the next row of the query result is ready.

  • Fetch the titles of the query result.

    Returns

    An array of column titles of type String.

    Declaration

    Swift

    public func fetchTitles() -> [String]

    Return Value

    An array of column titles of type String.