-
execute(_:
Extension methodonCompletion: ) Execute the query.
Declaration
Swift
public func execute(_ connection: Connection, onCompletion: @escaping ((QueryResult) -> ()))
Parameters
connection
The plugin that implements the Connection protocol and executes the query.
onCompletion
The 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
connection
The plugin that implements the Connection protocol and executes the query.
parameters
An array of the query parameters.
onCompletion
The function to be called when the execution of the query has completed.