execute_async


Description:

public async Cursor execute_async (Cancellable? cancellable = null) throws Error

Executes asynchronously the `SELECT` or `ASK` SPARQL query with the currently bound values.

This function also works for `DESCRIBE` and `CONSTRUCT` queries that retrieve data from the triple store. These query forms that return RDF data are however more useful together with [method@SparqlStatement.serialize_async].

This function should only be called on `TrackerSparqlStatement` objects obtained through [method@SparqlConnection.query_statement] or SELECT/CONSTRUCT/DESCRIBE statements loaded through [method@SparqlConnection.load_statement_from_gresource]. An error will be raised if this method is called on a `INSERT` or `DELETE` SPARQL query.

Parameters:

this

a `TrackerSparqlStatement`

cancellable

Optional [type@Gio.Cancellable]

callback

user-defined [type@Gio.AsyncReadyCallback] to be called when the asynchronous operation is finished.

user_data

user-defined data to be passed to callback