update_async


Description:

public async void update_async (string sparql, Cancellable? cancellable = null) throws Error

Executes asynchronously a SPARQL update.

It is recommented to consider the usage of [class@Batch] to cluster database updates. Frequent isolated SPARQL updates through this method will have a degraded performance in comparison.

If the query is partially built from user input or other untrusted sources, special care is required about possible SPARQL injection. In order to avoid it entirely, it is recommended to use [class@SparqlStatement], or to build the SPARQL input through [class@Resource]. The function [func@sparql_escape_string] exists as a last resort, but its use is not recommended.

Parameters:

this

A `TrackerSparqlConnection`

sparql

String containing the SPARQL update query

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