-
execute(_:Extension methodonCompletion: ) Execute the query.
Declaration
Swift
public func execute(_ connection: Connection, onCompletion: @escaping ((QueryResult) -> ()))Parameters
connectionThe plugin that implements the Connection protocol and executes the query.
onCompletionThe function to be called when the execution of the query has completed.
-
execute(_:Extension methodparameters: onCompletion: ) Execute the query with parameters.
Declaration
Swift
public func execute(_ connection: Connection, parameters: [Any], onCompletion: @escaping ((QueryResult) -> ()))Parameters
connectionThe plugin that implements the Connection protocol and executes the query.
parametersAn array of the query parameters.
onCompletionThe function to be called when the execution of the query has completed.
View on GitHub
Query Protocol Reference